diff options
author | nkostylev@google.com <nkostylev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 09:17:13 +0000 |
---|---|---|
committer | nkostylev@google.com <nkostylev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 09:17:13 +0000 |
commit | 1d5a9ced82a3c4a4f62c04afe726bf23304a24b9 (patch) | |
tree | 80fe04a923a928e76a2ac713a9c81ea731bc4209 /chrome/browser/browser_about_handler.cc | |
parent | 7bef619f7f1cde7d07e5642afd5a780c15e3e6d9 (diff) | |
download | chromium_src-1d5a9ced82a3c4a4f62c04afe726bf23304a24b9.zip chromium_src-1d5a9ced82a3c4a4f62c04afe726bf23304a24b9.tar.gz chromium_src-1d5a9ced82a3c4a4f62c04afe726bf23304a24b9.tar.bz2 |
API to report on registration success/skip.
Not integrated into OOBE yet.
BUG= http://crosbug.com/3653
TEST=none
Review URL: http://codereview.chromium.org/2946008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 05173b6..18810cf 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -112,6 +112,7 @@ const char kSandboxPath[] = "sandbox"; #if defined(OS_CHROMEOS) const char kNetworkPath[] = "network"; const char kOSCreditsPath[] = "os-credits"; +const char kRegisterProductPath[] = "register"; const char kSysPath[] = "system"; #endif @@ -137,6 +138,7 @@ const char *kAllAboutPaths[] = { #if defined(OS_CHROMEOS) kNetworkPath, kOSCreditsPath, + kRegisterProductPath, kSysPath, #endif }; @@ -595,6 +597,19 @@ std::string AboutSandbox() { } #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)); @@ -890,6 +905,8 @@ void AboutSource::StartDataRequest(const std::string& path_raw, #if defined(OS_CHROMEOS) } else if (path == kSysPath) { response = AboutSys(); + } else if (path == kRegisterProductPath) { + response = AboutRegisterProduct(); #endif } |