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

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

Issue 2333283004: [CUPS] Implement the UI handler for adding a new printer. (Closed)
Patch Set: Rebase. Nits fix. Created 4 years, 3 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 {"printerProtocolLpd", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_LPD}, 1089 {"printerProtocolLpd", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_LPD},
1090 {"printerProtocolUsb", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_USB}, 1090 {"printerProtocolUsb", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_USB},
1091 {"printerConfiguringMessage", 1091 {"printerConfiguringMessage",
1092 IDS_SETTINGS_PRINTING_CUPS_PRINTER_CONFIGURING_MESSAGE}, 1092 IDS_SETTINGS_PRINTING_CUPS_PRINTER_CONFIGURING_MESSAGE},
1093 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER}, 1093 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER},
1094 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER}, 1094 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER},
1095 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER}, 1095 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER},
1096 {"selectManufacturerModelMessage", 1096 {"selectManufacturerModelMessage",
1097 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL}, 1097 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL},
1098 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER}, 1098 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER},
1099 {"printerAddedSuccessfulMessage",
1100 IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADDED_PRINTER_MESSAGE},
1099 #endif 1101 #endif
1100 }; 1102 };
1101 AddLocalizedStringsBulk(html_source, localized_strings, 1103 AddLocalizedStringsBulk(html_source, localized_strings,
1102 arraysize(localized_strings)); 1104 arraysize(localized_strings));
1103 1105
1104 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); 1106 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
1105 html_source->AddString("printingCloudPrintLearnMoreUrl", 1107 html_source->AddString("printingCloudPrintLearnMoreUrl",
1106 chrome::kCloudPrintLearnMoreURL); 1108 chrome::kCloudPrintLearnMoreURL);
1107 1109
1108 #if defined(OS_CHROMEOS) 1110 #if defined(OS_CHROMEOS)
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 #endif 1619 #endif
1618 AddUsersStrings(html_source); 1620 AddUsersStrings(html_source);
1619 AddWebContentStrings(html_source); 1621 AddWebContentStrings(html_source);
1620 1622
1621 policy_indicator::AddLocalizedStrings(html_source); 1623 policy_indicator::AddLocalizedStrings(html_source);
1622 1624
1623 html_source->SetJsonPath(kLocalizedStringsFile); 1625 html_source->SetJsonPath(kLocalizedStringsFile);
1624 } 1626 }
1625 1627
1626 } // namespace settings 1628 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698