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

Side by Side Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 9700049: Help: Implement version updating on Win. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 2. Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/help/help_handler.h" 5 #include "chrome/browser/ui/webui/help/help_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 { "aboutTitle", IDS_ABOUT_TAB_TITLE }, 113 { "aboutTitle", IDS_ABOUT_TAB_TITLE },
114 { "aboutProductTitle", IDS_PRODUCT_NAME }, 114 { "aboutProductTitle", IDS_PRODUCT_NAME },
115 { "aboutProductDescription", IDS_ABOUT_PRODUCT_DESCRIPTION }, 115 { "aboutProductDescription", IDS_ABOUT_PRODUCT_DESCRIPTION },
116 { "relaunch", IDS_RELAUNCH_BUTTON }, 116 { "relaunch", IDS_RELAUNCH_BUTTON },
117 { "productName", IDS_PRODUCT_NAME }, 117 { "productName", IDS_PRODUCT_NAME },
118 { "productCopyright", IDS_ABOUT_VERSION_COPYRIGHT }, 118 { "productCopyright", IDS_ABOUT_VERSION_COPYRIGHT },
119 { "updateCheckStarted", IDS_UPGRADE_CHECK_STARTED }, 119 { "updateCheckStarted", IDS_UPGRADE_CHECK_STARTED },
120 { "upToDate", IDS_UPGRADE_UP_TO_DATE }, 120 { "upToDate", IDS_UPGRADE_UP_TO_DATE },
121 { "updating", IDS_UPGRADE_UPDATING }, 121 { "updating", IDS_UPGRADE_UPDATING },
122 { "updateAlmostDone", IDS_UPGRADE_SUCCESSFUL_RELAUNCH }, 122 { "updateAlmostDone", IDS_UPGRADE_SUCCESSFUL_RELAUNCH },
123 { "getHelpWithChrome", IDS_GET_HELP_USING_CHROME }, 123 { "getHelpWithChrome", IDS_GET_HELP_USING_CHROME },
124 { "reportAnIssue", IDS_REPORT_AN_ISSUE }, 124 { "reportAnIssue", IDS_REPORT_AN_ISSUE },
125 #if defined(OS_CHROMEOS) 125 #if defined(OS_CHROMEOS)
126 { "platform", IDS_PLATFORM_LABEL }, 126 { "platform", IDS_PLATFORM_LABEL },
127 { "firmware", IDS_ABOUT_PAGE_FIRMWARE }, 127 { "firmware", IDS_ABOUT_PAGE_FIRMWARE },
128 { "showMoreInfo", IDS_SHOW_MORE_INFO }, 128 { "showMoreInfo", IDS_SHOW_MORE_INFO },
129 { "hideMoreInfo", IDS_HIDE_MORE_INFO }, 129 { "hideMoreInfo", IDS_HIDE_MORE_INFO },
130 { "channel", IDS_ABOUT_PAGE_CHANNEL }, 130 { "channel", IDS_ABOUT_PAGE_CHANNEL },
131 { "stable", IDS_ABOUT_PAGE_CHANNEL_STABLE }, 131 { "stable", IDS_ABOUT_PAGE_CHANNEL_STABLE },
132 { "beta", IDS_ABOUT_PAGE_CHANNEL_BETA }, 132 { "beta", IDS_ABOUT_PAGE_CHANNEL_BETA },
133 { "dev", IDS_ABOUT_PAGE_CHANNEL_DEVELOPMENT }, 133 { "dev", IDS_ABOUT_PAGE_CHANNEL_DEVELOPMENT },
134 { "webkit", IDS_WEBKIT }, 134 { "webkit", IDS_WEBKIT },
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 web_ui()->CallJavascriptFunction("help.HelpPage.setOSFirmware", 350 web_ui()->CallJavascriptFunction("help.HelpPage.setOSFirmware",
351 *firmware_string); 351 *firmware_string);
352 } 352 }
353 353
354 void HelpHandler::OnReleaseChannel(const std::string& channel) { 354 void HelpHandler::OnReleaseChannel(const std::string& channel) {
355 scoped_ptr<Value> channel_string(Value::CreateStringValue(channel)); 355 scoped_ptr<Value> channel_string(Value::CreateStringValue(channel));
356 web_ui()->CallJavascriptFunction( 356 web_ui()->CallJavascriptFunction(
357 "help.HelpPage.updateSelectedChannel", *channel_string); 357 "help.HelpPage.updateSelectedChannel", *channel_string);
358 } 358 }
359 #endif // defined(OS_CHROMEOS) 359 #endif // defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help.html ('k') | chrome/browser/ui/webui/help/version_updater_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698