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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 prefs::kSearchProviderOverrides, | 60 prefs::kSearchProviderOverrides, |
61 prefs::kDefaultSearchProviderSearchURL, | 61 prefs::kDefaultSearchProviderSearchURL, |
62 prefs::kDefaultSearchProviderKeyword, | 62 prefs::kDefaultSearchProviderKeyword, |
63 prefs::kDefaultSearchProviderName, | 63 prefs::kDefaultSearchProviderName, |
64 #if !defined(OS_ANDROID) | 64 #if !defined(OS_ANDROID) |
65 prefs::kPinnedTabs, | 65 prefs::kPinnedTabs, |
66 #else | 66 #else |
67 kUnregisteredPreference, | 67 kUnregisteredPreference, |
68 #endif | 68 #endif |
69 prefs::kExtensionKnownDisabled, | 69 prefs::kExtensionKnownDisabled, |
| 70 prefs::kProfileResetPromptMemento, |
70 }; | 71 }; |
71 | 72 |
72 const size_t kSHA256DigestSize = 32; | 73 const size_t kSHA256DigestSize = 32; |
73 | 74 |
74 } // namespace | 75 } // namespace |
75 | 76 |
76 PrefMetricsService::PrefMetricsService(Profile* profile) | 77 PrefMetricsService::PrefMetricsService(Profile* profile) |
77 : profile_(profile), | 78 : profile_(profile), |
78 prefs_(profile_->GetPrefs()), | 79 prefs_(profile_->GetPrefs()), |
79 local_state_(g_browser_process->local_state()), | 80 local_state_(g_browser_process->local_state()), |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 455 } |
455 | 456 |
456 bool PrefMetricsService::Factory::ServiceIsNULLWhileTesting() const { | 457 bool PrefMetricsService::Factory::ServiceIsNULLWhileTesting() const { |
457 return false; | 458 return false; |
458 } | 459 } |
459 | 460 |
460 content::BrowserContext* PrefMetricsService::Factory::GetBrowserContextToUse( | 461 content::BrowserContext* PrefMetricsService::Factory::GetBrowserContextToUse( |
461 content::BrowserContext* context) const { | 462 content::BrowserContext* context) const { |
462 return chrome::GetBrowserContextRedirectedInIncognito(context); | 463 return chrome::GetBrowserContextRedirectedInIncognito(context); |
463 } | 464 } |
OLD | NEW |