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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 { "userAgent", IDS_ABOUT_VERSION_USER_AGENT }, | 190 { "userAgent", IDS_ABOUT_VERSION_USER_AGENT }, |
191 { "commandLine", IDS_ABOUT_VERSION_COMMAND_LINE }, | 191 { "commandLine", IDS_ABOUT_VERSION_COMMAND_LINE }, |
192 { "buildDate", IDS_ABOUT_VERSION_BUILD_DATE }, | 192 { "buildDate", IDS_ABOUT_VERSION_BUILD_DATE }, |
193 #endif | 193 #endif |
194 #if defined(OS_MACOSX) | 194 #if defined(OS_MACOSX) |
195 { "promote", IDS_ABOUT_CHROME_PROMOTE_UPDATER }, | 195 { "promote", IDS_ABOUT_CHROME_PROMOTE_UPDATER }, |
196 { "learnMore", IDS_LEARN_MORE }, | 196 { "learnMore", IDS_LEARN_MORE }, |
197 #endif | 197 #endif |
198 }; | 198 }; |
199 | 199 |
200 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) { | 200 for (size_t i = 0; i < arraysize(resources); ++i) { |
201 localized_strings->SetString(resources[i].name, | 201 localized_strings->SetString(resources[i].name, |
202 l10n_util::GetStringUTF16(resources[i].ids)); | 202 l10n_util::GetStringUTF16(resources[i].ids)); |
203 } | 203 } |
204 | 204 |
205 #if defined(OS_MACOSX) | 205 #if defined(OS_MACOSX) |
206 localized_strings->SetString( | 206 localized_strings->SetString( |
207 "updateObsoleteSystem", | 207 "updateObsoleteSystem", |
208 ObsoleteSystemMac::LocalizedObsoleteSystemString()); | 208 ObsoleteSystemMac::LocalizedObsoleteSystemString()); |
209 localized_strings->SetString( | 209 localized_strings->SetString( |
210 "updateObsoleteSystemURL", | 210 "updateObsoleteSystemURL", |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 web_ui()->CallJavascriptFunction( | 552 web_ui()->CallJavascriptFunction( |
553 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); | 553 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); |
554 } | 554 } |
555 | 555 |
556 void HelpHandler::OnTargetChannel(const std::string& channel) { | 556 void HelpHandler::OnTargetChannel(const std::string& channel) { |
557 web_ui()->CallJavascriptFunction( | 557 web_ui()->CallJavascriptFunction( |
558 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); | 558 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); |
559 } | 559 } |
560 | 560 |
561 #endif // defined(OS_CHROMEOS) | 561 #endif // defined(OS_CHROMEOS) |
OLD | NEW |