OLD | NEW |
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 { "aboutProductTitle", IDS_PRODUCT_NAME }, | 136 { "aboutProductTitle", IDS_PRODUCT_NAME }, |
137 #endif | 137 #endif |
138 { "aboutProductDescription", IDS_ABOUT_PRODUCT_DESCRIPTION }, | 138 { "aboutProductDescription", IDS_ABOUT_PRODUCT_DESCRIPTION }, |
139 { "relaunch", IDS_RELAUNCH_BUTTON }, | 139 { "relaunch", IDS_RELAUNCH_BUTTON }, |
140 { "productName", IDS_PRODUCT_NAME }, | 140 { "productName", IDS_PRODUCT_NAME }, |
141 { "productCopyright", IDS_ABOUT_VERSION_COPYRIGHT }, | 141 { "productCopyright", IDS_ABOUT_VERSION_COPYRIGHT }, |
142 { "updateCheckStarted", IDS_UPGRADE_CHECK_STARTED }, | 142 { "updateCheckStarted", IDS_UPGRADE_CHECK_STARTED }, |
143 { "upToDate", IDS_UPGRADE_UP_TO_DATE }, | 143 { "upToDate", IDS_UPGRADE_UP_TO_DATE }, |
144 { "updating", IDS_UPGRADE_UPDATING }, | 144 { "updating", IDS_UPGRADE_UPDATING }, |
145 { "updateAlmostDone", IDS_UPGRADE_SUCCESSFUL_RELAUNCH }, | 145 { "updateAlmostDone", IDS_UPGRADE_SUCCESSFUL_RELAUNCH }, |
146 { "getHelpWithChrome", IDS_GET_HELP_USING_CHROME }, | 146 { "getHelpWithChrome", IDS_GET_HELP_USING_CHROME }, |
147 { "reportAnIssue", IDS_REPORT_AN_ISSUE }, | 147 { "reportAnIssue", IDS_REPORT_AN_ISSUE }, |
148 #if defined(OS_CHROMEOS) | 148 #if defined(OS_CHROMEOS) |
149 { "platform", IDS_PLATFORM_LABEL }, | 149 { "platform", IDS_PLATFORM_LABEL }, |
150 { "firmware", IDS_ABOUT_PAGE_FIRMWARE }, | 150 { "firmware", IDS_ABOUT_PAGE_FIRMWARE }, |
151 { "showMoreInfo", IDS_SHOW_MORE_INFO }, | 151 { "showMoreInfo", IDS_SHOW_MORE_INFO }, |
152 { "hideMoreInfo", IDS_HIDE_MORE_INFO }, | 152 { "hideMoreInfo", IDS_HIDE_MORE_INFO }, |
153 { "channel", IDS_ABOUT_PAGE_CHANNEL }, | 153 { "channel", IDS_ABOUT_PAGE_CHANNEL }, |
154 { "stable", IDS_ABOUT_PAGE_CHANNEL_STABLE }, | 154 { "stable", IDS_ABOUT_PAGE_CHANNEL_STABLE }, |
155 { "beta", IDS_ABOUT_PAGE_CHANNEL_BETA }, | 155 { "beta", IDS_ABOUT_PAGE_CHANNEL_BETA }, |
156 { "dev", IDS_ABOUT_PAGE_CHANNEL_DEVELOPMENT }, | 156 { "dev", IDS_ABOUT_PAGE_CHANNEL_DEVELOPMENT }, |
157 { "webkit", IDS_WEBKIT }, | 157 { "webkit", IDS_WEBKIT }, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 // Note that this string will be internationalized. | 452 // Note that this string will be internationalized. |
453 string16 last_updated = base::TimeFormatFriendlyDate(time); | 453 string16 last_updated = base::TimeFormatFriendlyDate(time); |
454 g_last_updated_string = Value::CreateStringValue(last_updated); | 454 g_last_updated_string = Value::CreateStringValue(last_updated); |
455 } | 455 } |
456 | 456 |
457 web_ui()->CallJavascriptFunction("help.HelpPage.setLastUpdated", | 457 web_ui()->CallJavascriptFunction("help.HelpPage.setLastUpdated", |
458 *g_last_updated_string); | 458 *g_last_updated_string); |
459 } | 459 } |
460 #endif // defined(OS_CHROMEOS) | 460 #endif // defined(OS_CHROMEOS) |
OLD | NEW |