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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1912483003: Expand the footer in the material design Clear Browsing Data dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 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
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 "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 {"clearDeauthorizeContentLicenses", 292 {"clearDeauthorizeContentLicenses",
293 IDS_SETTINGS_DEAUTHORIZE_CONTENT_LICENSES}, 293 IDS_SETTINGS_DEAUTHORIZE_CONTENT_LICENSES},
294 {"clearDataHour", IDS_SETTINGS_CLEAR_DATA_HOUR}, 294 {"clearDataHour", IDS_SETTINGS_CLEAR_DATA_HOUR},
295 {"clearDataDay", IDS_SETTINGS_CLEAR_DATA_DAY}, 295 {"clearDataDay", IDS_SETTINGS_CLEAR_DATA_DAY},
296 {"clearDataWeek", IDS_SETTINGS_CLEAR_DATA_WEEK}, 296 {"clearDataWeek", IDS_SETTINGS_CLEAR_DATA_WEEK},
297 {"clearData4Weeks", IDS_SETTINGS_CLEAR_DATA_4WEEKS}, 297 {"clearData4Weeks", IDS_SETTINGS_CLEAR_DATA_4WEEKS},
298 {"clearDataEverything", IDS_SETTINGS_CLEAR_DATA_EVERYTHING}, 298 {"clearDataEverything", IDS_SETTINGS_CLEAR_DATA_EVERYTHING},
299 {"warnAboutNonClearedData", IDS_SETTINGS_CLEAR_DATA_SOME_STUFF_REMAINS}, 299 {"warnAboutNonClearedData", IDS_SETTINGS_CLEAR_DATA_SOME_STUFF_REMAINS},
300 {"clearsSyncedData", IDS_SETTINGS_CLEAR_DATA_CLEARS_SYNCED_DATA}, 300 {"clearsSyncedData", IDS_SETTINGS_CLEAR_DATA_CLEARS_SYNCED_DATA},
301 }; 301 };
302
303 static const char kClearBrowsingDataLearnMoreUrl[] =
304 "https://support.google.com/chrome/?p=settings_clear_browsing_data";
305 static const char kWebHistoryUrlInFooter[] =
306 "https://history.google.com/history/?utm_source=chrome_cbd";
dschuyler 2016/04/27 23:10:41 If there's any chance this might need to be locali
msramek 2016/04/28 14:34:18 Done. I put them there and marked them as non-tran
307
308 html_source->AddString("clearBrowsingDataLearnMoreUrl",
309 kClearBrowsingDataLearnMoreUrl);
310 html_source->AddString(
311 "otherFormsOfBrowsingHistory",
312 l10n_util::GetStringFUTF16(
313 IDS_CLEAR_BROWSING_DATA_HISTORY_FOOTER,
314 base::ASCIIToUTF16(kWebHistoryUrlInFooter)));
315
302 AddLocalizedStringsBulk(html_source, localized_strings, 316 AddLocalizedStringsBulk(html_source, localized_strings,
303 arraysize(localized_strings)); 317 arraysize(localized_strings));
304 } 318 }
305 319
306 void AddCloudPrintStrings(content::WebUIDataSource* html_source) { 320 void AddCloudPrintStrings(content::WebUIDataSource* html_source) {
307 LocalizedString localized_strings[] = { 321 LocalizedString localized_strings[] = {
308 {"googleCloudPrint", IDS_SETTINGS_GOOGLE_CLOUD_PRINT}, 322 {"googleCloudPrint", IDS_SETTINGS_GOOGLE_CLOUD_PRINT},
309 }; 323 };
310 AddLocalizedStringsBulk(html_source, localized_strings, 324 AddLocalizedStringsBulk(html_source, localized_strings,
311 arraysize(localized_strings)); 325 arraysize(localized_strings));
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 #endif 972 #endif
959 AddUsersStrings(html_source); 973 AddUsersStrings(html_source);
960 AddWebContentStrings(html_source); 974 AddWebContentStrings(html_source);
961 975
962 policy_indicator::AddLocalizedStrings(html_source); 976 policy_indicator::AddLocalizedStrings(html_source);
963 977
964 html_source->SetJsonPath(kLocalizedStringsFile); 978 html_source->SetJsonPath(kLocalizedStringsFile);
965 } 979 }
966 980
967 } // namespace settings 981 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698