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

Unified Diff: chrome/browser/history/history_field_trial.cc

Issue 8677025: Reverting based on discussions on #chromium with shess and rsleevi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/history/history_field_trial.h ('k') | chrome/browser/history/in_memory_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_field_trial.cc
===================================================================
--- chrome/browser/history/history_field_trial.cc (revision 111432)
+++ chrome/browser/history/history_field_trial.cc (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/history/history_field_trial.h"
-
-#include "base/metrics/field_trial.h"
-
-namespace history {
-
-namespace {
-
-int g_low_mem_trial_group = 0;
-bool g_low_mem_trial = false;
-
-static const char kHistoryFieldTrialName[] = "History";
-
-} // namespace
-
-// static
-void HistoryFieldTrial::Activate() {
- if (g_low_mem_trial_group)
- return; // Already initialized.
-
- scoped_refptr<base::FieldTrial> trial(new base::FieldTrial(
- kHistoryFieldTrialName, 1000, "Inactive", 2012, 2, 1));
-
- g_low_mem_trial_group = trial->AppendGroup("LowMem", 50); // 5%
- if (trial->group() == g_low_mem_trial_group)
- g_low_mem_trial = true;
-}
-
-// static
-bool HistoryFieldTrial::IsLowMemFieldTrial() {
- return g_low_mem_trial;
-}
-
-// static
-std::string HistoryFieldTrial::GetGroupSuffix() {
- return g_low_mem_trial ? std::string("_LowMem") : std::string();
-}
-
-} // namespace history
« no previous file with comments | « chrome/browser/history/history_field_trial.h ('k') | chrome/browser/history/in_memory_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698