| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/local_discovery/local_discovery_ui.h" | 5 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" | 8 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" |
| 9 #include "chrome/browser/ui/webui/metrics_handler.h" | 9 #include "chrome/browser/ui/webui/metrics_handler.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 source->AddLocalizedString("addingCanceledMessage", | 46 source->AddLocalizedString("addingCanceledMessage", |
| 47 IDS_LOCAL_DISCOVERY_REGISTER_CANCELED_ON_PRINTER); | 47 IDS_LOCAL_DISCOVERY_REGISTER_CANCELED_ON_PRINTER); |
| 48 source->AddLocalizedString("addingTimeoutMessage", | 48 source->AddLocalizedString("addingTimeoutMessage", |
| 49 IDS_LOCAL_DISCOVERY_REGISTER_TIMEOUT_ON_PRINTER); | 49 IDS_LOCAL_DISCOVERY_REGISTER_TIMEOUT_ON_PRINTER); |
| 50 source->AddLocalizedString("addingMessage1", | 50 source->AddLocalizedString("addingMessage1", |
| 51 IDS_LOCAL_DISCOVERY_ADDING_PRINTER_MESSAGE1); | 51 IDS_LOCAL_DISCOVERY_ADDING_PRINTER_MESSAGE1); |
| 52 source->AddLocalizedString("addingMessage2", | 52 source->AddLocalizedString("addingMessage2", |
| 53 IDS_LOCAL_DISCOVERY_ADDING_PRINTER_MESSAGE2); | 53 IDS_LOCAL_DISCOVERY_ADDING_PRINTER_MESSAGE2); |
| 54 source->AddLocalizedString("devicesTitle", | 54 source->AddLocalizedString("devicesTitle", |
| 55 IDS_LOCAL_DISCOVERY_DEVICES_PAGE_TITLE); | 55 IDS_LOCAL_DISCOVERY_DEVICES_PAGE_TITLE); |
| 56 source->AddLocalizedString("noDescription", | 56 source->AddLocalizedString("noDescriptionDevice", |
| 57 IDS_LOCAL_DISCOVERY_NO_DESCRIPTION); | 57 IDS_LOCAL_DISCOVERY_NO_DESCRIPTION_DEVICE); |
| 58 source->AddLocalizedString("noDescriptionPrinter", |
| 59 IDS_LOCAL_DISCOVERY_NO_DESCRIPTION_PRINTER); |
| 58 source->AddLocalizedString("printersOnNetworkZero", | 60 source->AddLocalizedString("printersOnNetworkZero", |
| 59 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_ZERO); | 61 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_ZERO); |
| 60 source->AddLocalizedString("printersOnNetworkOne", | 62 source->AddLocalizedString("printersOnNetworkOne", |
| 61 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_ONE); | 63 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_ONE); |
| 62 source->AddLocalizedString("printersOnNetworkMultiple", | 64 source->AddLocalizedString("printersOnNetworkMultiple", |
| 63 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_MULTIPLE); | 65 IDS_LOCAL_DISCOVERY_PRINTERS_ON_NETWORK_MULTIPLE); |
| 64 source->AddLocalizedString("cancel", IDS_CANCEL); | 66 source->AddLocalizedString("cancel", IDS_CANCEL); |
| 65 source->AddLocalizedString("ok", IDS_OK); | 67 source->AddLocalizedString("ok", IDS_OK); |
| 66 source->AddLocalizedString("loading", IDS_LOCAL_DISCOVERY_LOADING); | 68 source->AddLocalizedString("loading", IDS_LOCAL_DISCOVERY_LOADING); |
| 67 source->AddLocalizedString("addPrinters", IDS_LOCAL_DISCOVERY_ADD_PRINTERS); | 69 source->AddLocalizedString("addPrinters", IDS_LOCAL_DISCOVERY_ADD_PRINTERS); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 user_prefs::PrefRegistrySyncable* registry) { | 125 user_prefs::PrefRegistrySyncable* registry) { |
| 124 registry->RegisterBooleanPref( | 126 registry->RegisterBooleanPref( |
| 125 prefs::kLocalDiscoveryNotificationsEnabled, | 127 prefs::kLocalDiscoveryNotificationsEnabled, |
| 126 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
| 127 false, | 129 false, |
| 128 #else | 130 #else |
| 129 true, | 131 true, |
| 130 #endif | 132 #endif |
| 131 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 133 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 132 } | 134 } |
| OLD | NEW |