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" |
11 #include "chrome/browser/ui/webui/metrics_handler.h" | 11 #include "chrome/browser/ui/webui/metrics_handler.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "components/strings/grit/components_strings.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
17 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
18 #include "grit/browser_resources.h" | 19 #include "grit/browser_resources.h" |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 content::WebUIDataSource* CreateLocalDiscoveryHTMLSource() { | 23 content::WebUIDataSource* CreateLocalDiscoveryHTMLSource() { |
23 content::WebUIDataSource* source = | 24 content::WebUIDataSource* source = |
24 content::WebUIDataSource::Create(chrome::kChromeUIDevicesHost); | 25 content::WebUIDataSource::Create(chrome::kChromeUIDevicesHost); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 user_prefs::PrefRegistrySyncable* registry) { | 141 user_prefs::PrefRegistrySyncable* registry) { |
141 registry->RegisterBooleanPref( | 142 registry->RegisterBooleanPref( |
142 prefs::kLocalDiscoveryNotificationsEnabled, | 143 prefs::kLocalDiscoveryNotificationsEnabled, |
143 #if defined(OS_WIN) | 144 #if defined(OS_WIN) |
144 false, | 145 false, |
145 #else | 146 #else |
146 true, | 147 true, |
147 #endif | 148 #endif |
148 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 149 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
149 } | 150 } |
OLD | NEW |