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

Unified Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 10928061: About page UI: add confirmation message for release channel switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix help.js indentation as suggested by jhawkins. Created 8 years, 3 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 | « chrome/browser/resources/help/help.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index 7319f0c6d8d69cb0565dacb2e1eeadef09499d8c..e30cb5bf33db3fd3afe86958ed0ec5251dbdba06 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -150,6 +150,7 @@ void HelpHandler::GetLocalizedValues(DictionaryValue* localized_strings) {
{ "stable", IDS_ABOUT_PAGE_CHANNEL_STABLE },
{ "beta", IDS_ABOUT_PAGE_CHANNEL_BETA },
{ "dev", IDS_ABOUT_PAGE_CHANNEL_DEVELOPMENT },
+ { "channel-changed", IDS_ABOUT_PAGE_CHANNEL_CHANGED },
{ "webkit", IDS_WEBKIT },
{ "userAgent", IDS_ABOUT_VERSION_USER_AGENT },
{ "commandLine", IDS_ABOUT_VERSION_COMMAND_LINE },
@@ -326,6 +327,9 @@ void HelpHandler::SetReleaseTrack(const ListValue* args) {
if (chromeos::UserManager::Get()->IsCurrentUserOwner()) {
chromeos::CrosSettings::Get()->SetString(chromeos::kReleaseChannel,
channel);
+ // Check for update after switching release channel.
+ version_updater_->CheckForUpdate(base::Bind(&HelpHandler::SetUpdateStatus,
+ base::Unretained(this)));
}
}
« no previous file with comments | « chrome/browser/resources/help/help.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698