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

Side by Side Diff: trunk/src/chrome/browser/auto_launch_trial.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/auto_launch_trial.h" 5 #include "chrome/browser/auto_launch_trial.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chrome/browser/first_run/first_run.h" 10 #include "chrome/browser/first_run/first_run.h"
11 #include "chrome/installer/util/master_preferences.h" 11 #include "chrome/installer/util/master_preferences.h"
12 #include "chrome/installer/util/master_preferences_constants.h" 12 #include "chrome/installer/util/master_preferences_constants.h"
13 13
14 const char kAutoLaunchTrialName[] = "AutoLaunchExperiment"; 14 const char kAutoLaunchTrialName[] = "AutoLaunchExperiment";
15 const char kAutoLaunchTrialAutoLaunchGroup[] = "AutoLaunching"; 15 const char kAutoLaunchTrialAutoLaunchGroup[] = "AutoLaunching";
16 const char kAutoLaunchTrialControlGroup[] = "NotAutoLaunching"; 16 const char kAutoLaunchTrialControlGroup[] = "NotAutoLaunching";
17 17
18 namespace auto_launch_trial { 18 namespace auto_launch_trial {
19 19
20 bool IsInAutoLaunchGroup() { 20 bool IsInAutoLaunchGroup() {
21 return base::FieldTrialList::TrialExists(kAutoLaunchTrialName) && 21 return base::FieldTrialList::TrialExists(kAutoLaunchTrialName) &&
22 base::FieldTrialList::Find(kAutoLaunchTrialName)->group_name() 22 base::FieldTrialList::Find(kAutoLaunchTrialName)->group_name()
23 == kAutoLaunchTrialAutoLaunchGroup; 23 == kAutoLaunchTrialAutoLaunchGroup;
24 } 24 }
25 25
26 bool IsInExperimentGroup(const std::string& brand_code) { 26 bool IsInExperimentGroup(const std::string& brand_code) {
27 return base::LowerCaseEqualsASCII(brand_code, "rngp"); 27 return LowerCaseEqualsASCII(brand_code, "rngp");
28 } 28 }
29 29
30 bool IsInControlGroup(const std::string& brand_code) { 30 bool IsInControlGroup(const std::string& brand_code) {
31 return base::LowerCaseEqualsASCII(brand_code, "rngq"); 31 return LowerCaseEqualsASCII(brand_code, "rngq");
32 } 32 }
33 33
34 } // namespace auto_launch_trial 34 } // namespace auto_launch_trial
OLDNEW
« no previous file with comments | « trunk/src/base/strings/string_util.cc ('k') | trunk/src/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698