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/prefs/pref_metrics_service.h" | 5 #include "chrome/browser/prefs/pref_metrics_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/prefs/pref_registry_simple.h" | |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
15 #include "build/build_config.h" | 13 #include "build/build_config.h" |
16 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 15 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
18 #include "chrome/browser/prefs/session_startup_pref.h" | 16 #include "chrome/browser/prefs/session_startup_pref.h" |
19 #include "chrome/browser/profiles/incognito_helpers.h" | 17 #include "chrome/browser/profiles/incognito_helpers.h" |
20 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/search_engines/template_url_service_factory.h" | 19 #include "chrome/browser/search_engines/template_url_service_factory.h" |
22 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 20 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
23 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
24 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
25 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 23 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 24 #include "components/prefs/pref_registry_simple.h" |
| 25 #include "components/prefs/pref_service.h" |
26 #include "components/rappor/rappor_utils.h" | 26 #include "components/rappor/rappor_utils.h" |
27 #include "components/search_engines/template_url_prepopulate_data.h" | 27 #include "components/search_engines/template_url_prepopulate_data.h" |
28 #include "components/syncable_prefs/pref_service_syncable.h" | 28 #include "components/syncable_prefs/pref_service_syncable.h" |
29 #include "components/syncable_prefs/synced_pref_change_registrar.h" | 29 #include "components/syncable_prefs/synced_pref_change_registrar.h" |
30 #include "content/public/browser/browser_url_handler.h" | 30 #include "content/public/browser/browser_url_handler.h" |
31 #include "crypto/hmac.h" | 31 #include "crypto/hmac.h" |
32 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 32 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } | 249 } |
250 | 250 |
251 bool PrefMetricsService::Factory::ServiceIsNULLWhileTesting() const { | 251 bool PrefMetricsService::Factory::ServiceIsNULLWhileTesting() const { |
252 return false; | 252 return false; |
253 } | 253 } |
254 | 254 |
255 content::BrowserContext* PrefMetricsService::Factory::GetBrowserContextToUse( | 255 content::BrowserContext* PrefMetricsService::Factory::GetBrowserContextToUse( |
256 content::BrowserContext* context) const { | 256 content::BrowserContext* context) const { |
257 return chrome::GetBrowserContextRedirectedInIncognito(context); | 257 return chrome::GetBrowserContextRedirectedInIncognito(context); |
258 } | 258 } |
OLD | NEW |