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/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
10 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" | 10 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 IDS_LOCAL_DISCOVERY_CLOUD_DEVICES_LOGIN); | 90 IDS_LOCAL_DISCOVERY_CLOUD_DEVICES_LOGIN); |
91 source->AddLocalizedString("registerNeedLogin", | 91 source->AddLocalizedString("registerNeedLogin", |
92 IDS_LOCAL_DISCOVERY_REGISTER_NEED_LOGIN); | 92 IDS_LOCAL_DISCOVERY_REGISTER_NEED_LOGIN); |
93 source->AddLocalizedString("availableDevicesTitle", | 93 source->AddLocalizedString("availableDevicesTitle", |
94 IDS_LOCAL_DISCOVERY_AVAILABLE_DEVICES); | 94 IDS_LOCAL_DISCOVERY_AVAILABLE_DEVICES); |
95 source->AddLocalizedString("myDevicesTitle", | 95 source->AddLocalizedString("myDevicesTitle", |
96 IDS_LOCAL_DISCOVERY_MY_DEVICES); | 96 IDS_LOCAL_DISCOVERY_MY_DEVICES); |
97 source->AddLocalizedString("backButton", IDS_SETTINGS_TITLE); | 97 source->AddLocalizedString("backButton", IDS_SETTINGS_TITLE); |
98 | 98 |
99 // Cloud print connector-related strings. | 99 // Cloud print connector-related strings. |
100 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) | 100 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OS_CHROMEOS) |
101 source->AddLocalizedString("cloudPrintConnectorEnablingButton", | 101 source->AddLocalizedString("cloudPrintConnectorEnablingButton", |
102 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLING_BUTTON); | 102 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLING_BUTTON); |
103 source->AddLocalizedString("cloudPrintConnectorDisabledButton", | 103 source->AddLocalizedString("cloudPrintConnectorDisabledButton", |
104 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_DISABLED_BUTTON); | 104 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_DISABLED_BUTTON); |
105 source->AddLocalizedString("cloudPrintConnectorEnabledButton", | 105 source->AddLocalizedString("cloudPrintConnectorEnabledButton", |
106 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLED_BUTTON); | 106 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLED_BUTTON); |
107 source->AddLocalizedString("cloudPrintName", | 107 source->AddLocalizedString("cloudPrintName", |
108 IDS_GOOGLE_CLOUD_PRINT); | 108 IDS_GOOGLE_CLOUD_PRINT); |
109 source->AddLocalizedString("titleConnector", | 109 source->AddLocalizedString("titleConnector", |
110 IDS_LOCAL_DISCOVERY_CONNECTOR_SECTION); | 110 IDS_LOCAL_DISCOVERY_CONNECTOR_SECTION); |
(...skipping 29 matching lines...) Expand all Loading... |
140 user_prefs::PrefRegistrySyncable* registry) { | 140 user_prefs::PrefRegistrySyncable* registry) { |
141 registry->RegisterBooleanPref( | 141 registry->RegisterBooleanPref( |
142 prefs::kLocalDiscoveryNotificationsEnabled, | 142 prefs::kLocalDiscoveryNotificationsEnabled, |
143 #if defined(OS_WIN) | 143 #if defined(OS_WIN) |
144 false, | 144 false, |
145 #else | 145 #else |
146 true, | 146 true, |
147 #endif | 147 #endif |
148 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 148 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
149 } | 149 } |
OLD | NEW |