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

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

Issue 2110653003: CUPS: MD Settings printers subpage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address stevenjb@'s comments. Created 4 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
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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 g_browser_process->GetApplicationLocale()) 882 g_browser_process->GetApplicationLocale())
883 .spec(); 883 .spec();
884 html_source->AddString("syncDashboardUrl", sync_dashboard_url); 884 html_source->AddString("syncDashboardUrl", sync_dashboard_url);
885 html_source->AddString( 885 html_source->AddString(
886 "activityControlsUrl", 886 "activityControlsUrl",
887 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL)); 887 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL));
888 } 888 }
889 889
890 void AddPrintingStrings(content::WebUIDataSource* html_source) { 890 void AddPrintingStrings(content::WebUIDataSource* html_source) {
891 LocalizedString localized_strings[] = { 891 LocalizedString localized_strings[] = {
892 {"printingPageTitle", IDS_SETTINGS_PRINTING}, 892 {"printingPageTitle", IDS_SETTINGS_PRINTING},
893 {"printingCloudPrintLearnMoreLabel", 893 {"printingCloudPrintLearnMoreLabel",
894 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, 894 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL},
895 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, 895 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL},
896 {"printingManageCloudPrintDevices", 896 {"printingManageCloudPrintDevices",
897 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, 897 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES},
898 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS},
899 #if defined(OS_CHROMEOS)
900 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS},
901 #endif
898 }; 902 };
899 AddLocalizedStringsBulk(html_source, localized_strings, 903 AddLocalizedStringsBulk(html_source, localized_strings,
900 arraysize(localized_strings)); 904 arraysize(localized_strings));
901 905
902 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); 906 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
903 html_source->AddString("printingCloudPrintLearnMoreUrl", 907 html_source->AddString("printingCloudPrintLearnMoreUrl",
904 chrome::kCloudPrintLearnMoreURL); 908 chrome::kCloudPrintLearnMoreURL);
905 } 909 }
906 910
907 void AddPrivacyStrings(content::WebUIDataSource* html_source) { 911 void AddPrivacyStrings(content::WebUIDataSource* html_source) {
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 #endif 1282 #endif
1279 AddUsersStrings(html_source); 1283 AddUsersStrings(html_source);
1280 AddWebContentStrings(html_source); 1284 AddWebContentStrings(html_source);
1281 1285
1282 policy_indicator::AddLocalizedStrings(html_source); 1286 policy_indicator::AddLocalizedStrings(html_source);
1283 1287
1284 html_source->SetJsonPath(kLocalizedStringsFile); 1288 html_source->SetJsonPath(kLocalizedStringsFile);
1285 } 1289 }
1286 1290
1287 } // namespace settings 1291 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698