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

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

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698