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

Side by Side Diff: chrome/browser/chrome_browser_field_trials_mobile.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chrome_browser_field_trials_mobile.h" 5 #include "chrome/browser/chrome_browser_field_trials_mobile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // independently from the rollout of compression proxy. The enabled 57 // independently from the rollout of compression proxy. The enabled
58 // percentage is configured to be 10% = 100 / 1000 until overridden by the 58 // percentage is configured to be 10% = 100 / 1000 until overridden by the
59 // server. When this trial is "Enabled," users get a promo, whereas 59 // server. When this trial is "Enabled," users get a promo, whereas
60 // otherwise, compression is available without a promo. 60 // otherwise, compression is available without a promo.
61 DataCompressionProxyBaseFieldTrial( 61 DataCompressionProxyBaseFieldTrial(
62 "DataCompressionProxyPromoVisibility", 100, 1000); 62 "DataCompressionProxyPromoVisibility", 100, 1000);
63 } 63 }
64 64
65 } // namespace 65 } // namespace
66 66
67 void SetupMobileFieldTrials(const CommandLine& parsed_command_line) { 67 void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) {
68 SetupDataCompressionProxyFieldTrials(); 68 SetupDataCompressionProxyFieldTrials();
69 #if defined(OS_ANDROID) 69 #if defined(OS_ANDROID)
70 prerender::ConfigurePrerender(parsed_command_line); 70 prerender::ConfigurePrerender(parsed_command_line);
71 71
72 // Force-enable profiler timing depending on the field trial. 72 // Force-enable profiler timing depending on the field trial.
73 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable") 73 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable")
74 tracked_objects::ThreadData::EnableProfilerTiming(); 74 tracked_objects::ThreadData::EnableProfilerTiming();
75 #endif 75 #endif
76 } 76 }
77 77
78 } // namespace chrome 78 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_field_trials_desktop.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698