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

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

Issue 440693002: Add function to register a synthetic trial with the trial hash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_accessor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chrome_metrics_service_accessor.h
===================================================================
--- chrome/browser/metrics/chrome_metrics_service_accessor.h (revision 287382)
+++ chrome/browser/metrics/chrome_metrics_service_accessor.h (working copy)
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
#define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
+#include <stdint.h>
+#include <string>
+
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "chrome/browser/metrics/metrics_service_accessor.h"
@@ -46,6 +49,7 @@
friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction;
friend class ::FlashDOMHandler;
friend class system_logs::ChromeInternalLogSource;
+ friend class UmaSessionStats;
FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
MetricsReportingEnabled);
@@ -70,9 +74,15 @@
// registered at a time for a given trial name. Only the last group name that
// is registered for a given trial name will be recorded. The values passed
// in must not correspond to any real field trial in the code.
- static bool RegisterSyntheticFieldTrial(const std::string& trial,
- const std::string& group);
+ static bool RegisterSyntheticFieldTrial(const std::string& trial_name,
+ const std::string& group_name);
+ // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial
+ // name, rather than computing it from the string.
+ static bool RegisterSyntheticFieldTrialWithNameHash(
+ uint32_t trial_name_hash,
+ const std::string& group_name);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
};
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_accessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698