Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3467)

Unified Diff: chrome/browser/dom_ui/register_page_ui.cc

Issue 3058006: Add API on host registration page. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fixes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/dom_ui/register_page_ui.cc
diff --git a/chrome/browser/dom_ui/register_page_ui.cc b/chrome/browser/dom_ui/register_page_ui.cc
index 3cffc7a28205e089b7e5f020e1f92d1c82abad54..7f6f1962ca9a9f2db3a149ced1aad106958cae05 100644
--- a/chrome/browser/dom_ui/register_page_ui.cc
+++ b/chrome/browser/dom_ui/register_page_ui.cc
@@ -119,9 +119,6 @@ void RegisterPageUIHTMLSource::StartDataRequest(const std::string& path,
ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_HOST_REGISTRATION_PAGE_HTML));
- // TODO(nkostylev): Embed registration form URL from startup manifest.
- // http://crosbug.com/4645.
-
scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes);
html_bytes->data.resize(register_html.size());
std::copy(register_html.begin(),
@@ -166,8 +163,10 @@ void RegisterPageHandler::HandleGetRegistrationUrl(const Value* value) {
#if defined(OS_CHROMEOS)
if (WizardController::default_controller() &&
WizardController::default_controller()->GetCustomization()) {
- StringValue url_value(WizardController::default_controller()->
- GetCustomization()->registration_url());
+ const std::string& url = WizardController::default_controller()->
+ GetCustomization()->registration_url();
+ LOG(INFO) << "Loading registration form with URL: " << url;
+ StringValue url_value(url);
dom_ui_->CallJavascriptFunction(L"setRegistrationUrl", url_value);
} else {
LOG(ERROR) << "Startup manifest not defined.";
@@ -225,6 +224,7 @@ void RegisterPageHandler::SendUserInfo() {
value.SetString(L"user_first_name", L"");
value.SetString(L"user_last_name", L"");
+ LOG(INFO) << "Sending user info to host page";
dom_ui_->CallJavascriptFunction(L"setUserInfo", value);
#endif
}
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/resources/host_registration_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698