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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 3026007: Revert 52902 - Add getUserInfo, getRegistrationUrl message callback for regis... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
===================================================================
--- chrome/browser/browser_about_handler.cc (revision 52903)
+++ chrome/browser/browser_about_handler.cc (working copy)
@@ -114,6 +114,7 @@
#if defined(OS_CHROMEOS)
const char kNetworkPath[] = "network";
const char kOSCreditsPath[] = "os-credits";
+const char kRegisterProductPath[] = "register";
const char kSysPath[] = "system";
#endif
@@ -140,6 +141,7 @@
#if defined(OS_CHROMEOS)
kNetworkPath,
kOSCreditsPath,
+ kRegisterProductPath,
kSysPath,
#endif
};
@@ -599,6 +601,19 @@
}
#endif
+#if defined(OS_CHROMEOS)
+std::string AboutRegisterProduct() {
+ static const base::StringPiece register_html(
+ ResourceBundle::GetSharedInstance().GetRawDataResource(
+ IDR_HOST_REGISTRATION_PAGE_HTML));
+
+ // TODO(nkostylev): Embed registration form URL from startup manifest.
+ // http://crosbug.com/4645.
+
+ return register_html.as_string();
+}
+#endif
+
std::string AboutVersion(DictionaryValue* localized_strings) {
localized_strings->SetString(L"title",
l10n_util::GetString(IDS_ABOUT_VERSION_TITLE));
@@ -894,6 +909,8 @@
#if defined(OS_CHROMEOS)
} else if (path == kSysPath) {
response = AboutSys();
+ } else if (path == kRegisterProductPath) {
+ response = AboutRegisterProduct();
#endif
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698