Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/prefs/pref_metrics_service.cc

Issue 99853002: Added the reset prompt memento as a tracked preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed formatting nit. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698