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

Unified Diff: chrome/browser/metrics/metrics_service.h

Issue 7360001: Allow one-time randomization in field trials to work even if metrics are disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/metrics_service.h
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 24e143b454914b3e0c25ed94105afd0b4aa43384..7d7bc2a43c7f3b22f8f6b05e6bab314a7cc19985 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -90,6 +90,10 @@ class MetricsService : public NotificationObserver,
// recording is not currently running.
std::string GetClientId();
+ // Returns the client ID for this client. It will be non-empty, even if
+ // metrics recording is not currently running.
+ std::string GetClientIdNonEmpty();
+
// At startup, prefs needs to be called with a list of all the pref names and
// types we'll be using.
static void RegisterPrefs(PrefService* local_state);

Powered by Google App Engine
This is Rietveld 408576698