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

Unified Diff: chrome/browser/auto_launch_trial.cc

Issue 8969024: Make sure the Autolaunch infobar... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/auto_launch_trial.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/auto_launch_trial.cc
===================================================================
--- chrome/browser/auto_launch_trial.cc (revision 114621)
+++ chrome/browser/auto_launch_trial.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/file_path.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
+#include "base/string_util.h"
#include "chrome/browser/first_run/first_run.h"
#include "chrome/installer/util/master_preferences_constants.h"
#include "chrome/installer/util/master_preferences.h"
@@ -17,12 +18,20 @@
namespace auto_launch_trial {
-bool IsInAutoLaunchGroup() {
+bool IsInAutoLaunchFieldTrial() {
Roger Tawa OOO till Jul 10th 2011/12/16 20:44:31 I actually think the old name was better. Remembe
return base::FieldTrialList::TrialExists(kAutoLaunchTrialName) &&
base::FieldTrialList::Find(kAutoLaunchTrialName)->group_name()
== kAutoLaunchTrialAutoLaunchGroup;
}
+bool IsInExperimentGroup(const std::string& brand_code) {
+ return LowerCaseEqualsASCII(brand_code, "rngp");
+}
+
+bool IsInControlGroup(const std::string& brand_code) {
+ return LowerCaseEqualsASCII(brand_code, "rngq");
+}
+
void UpdateToggleAutoLaunchMetric(bool auto_launch) {
UMA_HISTOGRAM_ENUMERATION(
base::FieldTrial::MakeName("ToggleAutoLaunch", kAutoLaunchTrialName),
« no previous file with comments | « chrome/browser/auto_launch_trial.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698