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

Side by Side Diff: ios/chrome/browser/ui/webui/flags_ui.cc

Issue 2954263003: Reland: Add support for $i18n{} localized strings to ios/web. (Closed)
Patch Set: Add missing chrome://flags webUI template keys. Created 3 years, 5 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 | « no previous file | ios/web/public/web_ui_ios_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/ui/webui/flags_ui.h" 5 #include "ios/chrome/browser/ui/webui/flags_ui.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 IDS_FLAGS_UI_ALTERNATIVES_UI_NO_EXPERIMENTS_AVAILABLE); 48 IDS_FLAGS_UI_ALTERNATIVES_UI_NO_EXPERIMENTS_AVAILABLE);
49 } else { 49 } else {
50 source->AddLocalizedString(flags_ui::kFlagsLongTitle, 50 source->AddLocalizedString(flags_ui::kFlagsLongTitle,
51 IDS_FLAGS_UI_LONG_TITLE); 51 IDS_FLAGS_UI_LONG_TITLE);
52 source->AddLocalizedString(flags_ui::kFlagsTableTitle, 52 source->AddLocalizedString(flags_ui::kFlagsTableTitle,
53 IDS_FLAGS_UI_TABLE_TITLE); 53 IDS_FLAGS_UI_TABLE_TITLE);
54 } 54 }
55 source->AddLocalizedString(flags_ui::kFlagsWarningHeader, 55 source->AddLocalizedString(flags_ui::kFlagsWarningHeader,
56 IDS_FLAGS_UI_WARNING_HEADER); 56 IDS_FLAGS_UI_WARNING_HEADER);
57 source->AddLocalizedString(flags_ui::kFlagsBlurb, IDS_FLAGS_UI_WARNING_TEXT); 57 source->AddLocalizedString(flags_ui::kFlagsBlurb, IDS_FLAGS_UI_WARNING_TEXT);
58 source->AddLocalizedString(flags_ui::kChannelPromoBeta,
59 IDS_FLAGS_UI_PROMOTE_BETA_CHANNEL);
60 source->AddLocalizedString(flags_ui::kChannelPromoDev,
61 IDS_FLAGS_UI_PROMOTE_DEV_CHANNEL);
58 source->AddLocalizedString(flags_ui::kFlagsUnsupportedTableTitle, 62 source->AddLocalizedString(flags_ui::kFlagsUnsupportedTableTitle,
59 IDS_FLAGS_UI_UNSUPPORTED_TABLE_TITLE); 63 IDS_FLAGS_UI_UNSUPPORTED_TABLE_TITLE);
60 source->AddLocalizedString(flags_ui::kFlagsNotSupported, 64 source->AddLocalizedString(flags_ui::kFlagsNotSupported,
61 IDS_FLAGS_UI_NOT_AVAILABLE); 65 IDS_FLAGS_UI_NOT_AVAILABLE);
62 source->AddLocalizedString(flags_ui::kFlagsRestartNotice, 66 source->AddLocalizedString(flags_ui::kFlagsRestartNotice,
63 IDS_FLAGS_UI_RELAUNCH_NOTICE); 67 IDS_FLAGS_UI_RELAUNCH_NOTICE);
64 source->AddLocalizedString(flags_ui::kFlagsRestartButton, 68 source->AddLocalizedString(flags_ui::kFlagsRestartButton,
65 IDS_FLAGS_UI_RELAUNCH_BUTTON); 69 IDS_FLAGS_UI_RELAUNCH_BUTTON);
66 source->AddLocalizedString(flags_ui::kResetAllButton, 70 source->AddLocalizedString(flags_ui::kResetAllButton,
67 IDS_FLAGS_UI_RESET_ALL_BUTTON); 71 IDS_FLAGS_UI_RESET_ALL_BUTTON);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 /////////////////////////////////////////////////////////////////////////////// 248 ///////////////////////////////////////////////////////////////////////////////
245 // 249 //
246 // AppleFlagsUI 250 // AppleFlagsUI
247 // 251 //
248 /////////////////////////////////////////////////////////////////////////////// 252 ///////////////////////////////////////////////////////////////////////////////
249 253
250 AppleFlagsUI::AppleFlagsUI(web::WebUIIOS* web_ui) 254 AppleFlagsUI::AppleFlagsUI(web::WebUIIOS* web_ui)
251 : BaseFlagsUI(web_ui, BaseFlagsUI::FLAGS_UI_APPLE) {} 255 : BaseFlagsUI(web_ui, BaseFlagsUI::FLAGS_UI_APPLE) {}
252 256
253 AppleFlagsUI::~AppleFlagsUI() {} 257 AppleFlagsUI::~AppleFlagsUI() {}
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/web_ui_ios_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698