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

Side by Side Diff: chrome/browser/metrics/metrics_service.h

Issue 10832371: Record the first recorded entropy source instead of the last. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: dchecks Created 8 years, 4 months 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
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 const tracked_objects::ProcessDataSnapshot& process_data, 220 const tracked_objects::ProcessDataSnapshot& process_data,
221 content::ProcessType process_type) OVERRIDE; 221 content::ProcessType process_type) OVERRIDE;
222 // Callback that moves the state to INIT_TASK_DONE. 222 // Callback that moves the state to INIT_TASK_DONE.
223 virtual void FinishedReceivingProfilerData() OVERRIDE; 223 virtual void FinishedReceivingProfilerData() OVERRIDE;
224 224
225 // Returns the low entropy source for this client. This is a random value 225 // Returns the low entropy source for this client. This is a random value
226 // that is non-identifying amongst browser clients. This method will 226 // that is non-identifying amongst browser clients. This method will
227 // generate the entropy source value if it has not been called before. 227 // generate the entropy source value if it has not been called before.
228 int GetLowEntropySource(); 228 int GetLowEntropySource();
229 229
230 // Returns the last entropy source that was returned by this service since 230 // Returns the first entropy source that was returned by this service since
231 // start up, or NONE if neither was returned yet. This is exposed for testing 231 // start up, or NONE if neither was returned yet. This is exposed for testing
232 // only. 232 // only.
233 EntropySourceReturned entropy_source_returned() const { 233 EntropySourceReturned entropy_source_returned() const {
234 return entropy_source_returned_; 234 return entropy_source_returned_;
235 } 235 }
236 236
237 // When we start a new version of Chromium (different from our last run), we 237 // When we start a new version of Chromium (different from our last run), we
238 // need to discard the old crash stats so that we don't attribute crashes etc. 238 // need to discard the old crash stats so that we don't attribute crashes etc.
239 // in the old version to the current version (via current logs). 239 // in the old version to the current version (via current logs).
240 // Without this, a common reason to finally start a new version is to crash 240 // Without this, a common reason to finally start a new version is to crash
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 friend bool prerender::IsOmniboxEnabled(Profile* profile); 507 friend bool prerender::IsOmniboxEnabled(Profile* profile);
508 friend class extensions::ExtensionDownloader; 508 friend class extensions::ExtensionDownloader;
509 509
510 // Returns true if prefs::kMetricsReportingEnabled is set. 510 // Returns true if prefs::kMetricsReportingEnabled is set.
511 static bool IsMetricsReportingEnabled(); 511 static bool IsMetricsReportingEnabled();
512 512
513 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 513 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
514 }; 514 };
515 515
516 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 516 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698