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

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

Issue 536033002: Clean up old field trial activation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 5 #include "chrome/browser/chrome_browser_field_trials.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 30 matching lines...) Expand all
41 41
42 #if defined(OS_ANDROID) || defined(OS_IOS) 42 #if defined(OS_ANDROID) || defined(OS_IOS)
43 chrome::SetupMobileFieldTrials(parsed_command_line_); 43 chrome::SetupMobileFieldTrials(parsed_command_line_);
44 #else 44 #else
45 chrome::SetupDesktopFieldTrials( 45 chrome::SetupDesktopFieldTrials(
46 parsed_command_line_, local_state); 46 parsed_command_line_, local_state);
47 #endif 47 #endif
48 } 48 }
49 49
50 void ChromeBrowserFieldTrials::InstantiateDynamicTrials() { 50 void ChromeBrowserFieldTrials::InstantiateDynamicTrials() {
51 // Call |FindValue()| on the trials below, which may come from the server, to
52 // ensure they get marked as "used" for the purposes of data reporting.
53 base::FieldTrialList::FindValue("UMA-Dynamic-Binary-Uniformity-Trial");
54 base::FieldTrialList::FindValue("UMA-Dynamic-Uniformity-Trial");
55 base::FieldTrialList::FindValue("InstantDummy");
56 base::FieldTrialList::FindValue("InstantChannel");
57 base::FieldTrialList::FindValue("Test0PercentDefault");
58 // The following trials are used from renderer process. 51 // The following trials are used from renderer process.
59 // Mark here so they will be sync-ed. 52 // Mark here so they will be sync-ed.
60 base::FieldTrialList::FindValue("CLD1VsCLD2"); 53 base::FieldTrialList::FindValue("CLD1VsCLD2");
61 base::FieldTrialList::FindValue("MouseEventPreconnect"); 54 base::FieldTrialList::FindValue("MouseEventPreconnect");
62 base::FieldTrialList::FindValue("UnauthorizedPluginInfoBar"); 55 base::FieldTrialList::FindValue("UnauthorizedPluginInfoBar");
63 base::FieldTrialList::FindValue("DisplayList2dCanvas"); 56 base::FieldTrialList::FindValue("DisplayList2dCanvas");
64 // Activate the autocomplete dynamic field trials. 57 // Activate the autocomplete dynamic field trials.
65 OmniboxFieldTrial::ActivateDynamicTrials(); 58 OmniboxFieldTrial::ActivateDynamicTrials();
66 } 59 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698