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

Unified Diff: trunk/src/chrome/browser/prerender/prerender_field_trial.cc

Issue 13995007: Revert 194484 "Add the LoggedIn Predictor, to detect which websi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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
Index: trunk/src/chrome/browser/prerender/prerender_field_trial.cc
===================================================================
--- trunk/src/chrome/browser/prerender/prerender_field_trial.cc (revision 194504)
+++ trunk/src/chrome/browser/prerender/prerender_field_trial.cc (working copy)
@@ -29,10 +29,6 @@
const char kLocalPredictorTrialName[] = "PrerenderLocalPredictor";
const char kLocalPredictorEnabledGroup[] = "Enabled";
-const char kLoggedInPredictorTrialName[] = "PrerenderLoggedInPredictor";
-const char kLoggedInPredictorEnabledGroup[] = "Enabled";
-const char kLoggedInPredictorDisabledGroup[] = "Disabled";
-
void SetupPrefetchFieldTrial() {
chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
if (channel == chrome::VersionInfo::CHANNEL_STABLE ||
@@ -145,7 +141,6 @@
} // end namespace
void ConfigureOmniboxPrerender();
-void ConfigureLoggedInPredictor();
void ConfigurePrefetchAndPrerender(const CommandLine& command_line) {
enum PrerenderOption {
@@ -202,7 +197,6 @@
}
ConfigureOmniboxPrerender();
- ConfigureLoggedInPredictor();
}
void ConfigureOmniboxPrerender() {
@@ -223,19 +217,6 @@
kDisabledProbability);
}
-void ConfigureLoggedInPredictor() {
- chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
- if (channel == chrome::VersionInfo::CHANNEL_STABLE ||
- channel == chrome::VersionInfo::CHANNEL_BETA) {
- return;
- }
- scoped_refptr<FieldTrial> logged_in_predictor_trial(
- FieldTrialList::FactoryGetFieldTrial(
- kLoggedInPredictorTrialName, 100,
- kLoggedInPredictorDisabledGroup, 2013, 12, 31, NULL));
- logged_in_predictor_trial->AppendGroup(kLoggedInPredictorEnabledGroup, 100);
-}
-
bool IsOmniboxEnabled(Profile* profile) {
if (!profile)
return false;
@@ -269,9 +250,4 @@
kLocalPredictorEnabledGroup;
}
-bool IsLoggedInPredictorEnabled() {
- return base::FieldTrialList::FindFullName(kLoggedInPredictorTrialName) ==
- kLoggedInPredictorEnabledGroup;
-}
-
} // namespace prerender
« no previous file with comments | « trunk/src/chrome/browser/prerender/prerender_field_trial.h ('k') | trunk/src/chrome/browser/prerender/prerender_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698