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

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

Issue 2250733003: Settings People Sync: Add 'Reset Sync' message for forgotten passphrase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@244-settings-people-fix-error-message
Patch Set: Created 4 years, 4 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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 // Format numbers to be used on the pin keyboard. 953 // Format numbers to be used on the pin keyboard.
954 for (int j = 0; j <= 9; j++) { 954 for (int j = 0; j <= 9; j++) {
955 html_source->AddString("pinKeyboard" + base::IntToString(j), 955 html_source->AddString("pinKeyboard" + base::IntToString(j),
956 base::FormatNumber(int64_t{j})); 956 base::FormatNumber(int64_t{j}));
957 } 957 }
958 958
959 html_source->AddString("autofillHelpURL", autofill::kHelpURL); 959 html_source->AddString("autofillHelpURL", autofill::kHelpURL);
960 html_source->AddString("supervisedUsersUrl", 960 html_source->AddString("supervisedUsersUrl",
961 chrome::kLegacySupervisedUserManagementURL); 961 chrome::kLegacySupervisedUserManagementURL);
962 std::string sync_dashboard_url = 962
963 google_util::AppendGoogleLocaleParam( 963 base::string16 sync_dashboard_url =
964 GURL(chrome::kSyncGoogleDashboardURL), 964 base::ASCIIToUTF16(google_util::AppendGoogleLocaleParam(
965 g_browser_process->GetApplicationLocale()) 965 GURL(chrome::kSyncGoogleDashboardURL),
966 .spec(); 966 g_browser_process->GetApplicationLocale())
967 .spec());
967 html_source->AddString("syncDashboardUrl", sync_dashboard_url); 968 html_source->AddString("syncDashboardUrl", sync_dashboard_url);
dschuyler 2016/08/18 01:09:29 Sadly, sync_dashboard_url will be turned back into
tommycli 2016/08/18 16:23:31 Done.
968 html_source->AddString( 969 html_source->AddString(
969 "activityControlsUrl", 970 "passphraseRecover",
970 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL)); 971 l10n_util::GetStringFUTF16(IDS_SETTINGS_PASSPHRASE_RECOVER,
dschuyler 2016/08/18 01:09:29 Not a big deal, but this can be l10n_util::GetStri
tommycli 2016/08/18 16:23:31 Done.
972 sync_dashboard_url));
973
974 html_source->AddString("activityControlsUrl",
975 chrome::kGoogleAccountActivityControlsURL);
971 } 976 }
972 977
973 void AddPrintingStrings(content::WebUIDataSource* html_source) { 978 void AddPrintingStrings(content::WebUIDataSource* html_source) {
974 LocalizedString localized_strings[] = { 979 LocalizedString localized_strings[] = {
975 {"printingPageTitle", IDS_SETTINGS_PRINTING}, 980 {"printingPageTitle", IDS_SETTINGS_PRINTING},
976 {"printingCloudPrintLearnMoreLabel", 981 {"printingCloudPrintLearnMoreLabel",
977 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, 982 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL},
978 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, 983 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL},
979 {"printingManageCloudPrintDevices", 984 {"printingManageCloudPrintDevices",
980 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, 985 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES},
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 #endif 1429 #endif
1425 AddUsersStrings(html_source); 1430 AddUsersStrings(html_source);
1426 AddWebContentStrings(html_source); 1431 AddWebContentStrings(html_source);
1427 1432
1428 policy_indicator::AddLocalizedStrings(html_source); 1433 policy_indicator::AddLocalizedStrings(html_source);
1429 1434
1430 html_source->SetJsonPath(kLocalizedStringsFile); 1435 html_source->SetJsonPath(kLocalizedStringsFile);
1431 } 1436 }
1432 1437
1433 } // namespace settings 1438 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698