summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_counters.cc45
-rw-r--r--chrome/common/chrome_counters.h36
-rw-r--r--chrome/common/chrome_switches.cc20
-rw-r--r--chrome/common/chrome_switches.h6
4 files changed, 0 insertions, 107 deletions
diff --git a/chrome/common/chrome_counters.cc b/chrome/common/chrome_counters.cc
deleted file mode 100644
index da6ee3b..0000000
--- a/chrome/common/chrome_counters.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2010 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/common/chrome_counters.h"
-
-#include "base/metrics/stats_counters.h"
-
-namespace chrome {
-
-using base::StatsCounterTimer;
-using base::StatsRate;
-
-// Note: We use the construct-on-first-use pattern here, because we don't
-// want to fight with any static initializer ordering problems later.
-// The downside of this is that the objects don't ever get cleaned up.
-// But they are small and this is okay.
-
-// Note: Because these are constructed on-first-use, there is a slight
-// race condition - two threads could initialize the same counter.
-// If this happened, the stats table would still work just fine;
-// we'd leak the extraneous StatsCounter object once, and that
-// would be it. But these are small objects, so this is ok.
-
-StatsCounterTimer& Counters::chrome_main() {
- static StatsCounterTimer* ctr = new StatsCounterTimer("Chrome.Init");
- return *ctr;
-}
-
-StatsCounterTimer& Counters::renderer_main() {
- static StatsCounterTimer* ctr = new StatsCounterTimer("Chrome.RendererInit");
- return *ctr;
-}
-
-StatsCounterTimer& Counters::spellcheck_init() {
- static StatsCounterTimer* ctr = new StatsCounterTimer("SpellCheck.Init");
- return *ctr;
-}
-
-StatsRate& Counters::spellcheck_lookup() {
- static StatsRate* ctr = new StatsRate("SpellCheck.Lookup");
- return *ctr;
-}
-
-} // namespace chrome
diff --git a/chrome/common/chrome_counters.h b/chrome/common/chrome_counters.h
deleted file mode 100644
index 742cbb4..0000000
--- a/chrome/common/chrome_counters.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-// Counters used within the browser.
-
-#ifndef CHROME_COMMON_CHROME_COUNTERS_H_
-#define CHROME_COMMON_CHROME_COUNTERS_H_
-#pragma once
-
-namespace base {
-class StatsCounter;
-class StatsCounterTimer;
-class StatsRate;
-}
-
-namespace chrome {
-
-class Counters {
- public:
- // The amount of time spent in chrome initialization.
- static base::StatsCounterTimer& chrome_main();
-
- // The amount of time spent in renderer initialization.
- static base::StatsCounterTimer& renderer_main();
-
- // Time spent in spellchecker initialization.
- static base::StatsCounterTimer& spellcheck_init();
-
- // Time/Count of spellcheck lookups.
- static base::StatsRate& spellcheck_lookup();
-};
-
-} // namespace chrome
-
-#endif // CHROME_COMMON_CHROME_COUNTERS_H_
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index dd92eb7..8b5a99e 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -553,18 +553,6 @@ const char kForceAppsPromoVisible[] = "force-apps-promo-visible";
// the base layer even when compositing is not strictly required.
const char kForceCompositingMode[] = "force-compositing-mode";
-// Some field tests may rendomized in the browser, and the randomly selected
-// outcome needs to be propagated to the renderer. For instance, this is used
-// to modify histograms recorded in the renderer, or to get the renderer to
-// also set of its state (initialize, or not initialize components) to match the
-// experiment(s).
-// The argument is a string-ized list of experiment names, and the associated
-// value that was randomly selected. In the recent implementetaion, the
-// persistent representation generated by field_trial.cc and later decoded, is a
-// list of name and value pairs, separated by slashes. See field trial.cc for
-// current details.
-const char kForceFieldTestNameAndValue[] = "force-fieldtest";
-
// Force renderer accessibility to be on instead of enabling it on demand when
// a screen reader is detected. The disable-renderer-accessibility switch
// overrides this if present.
@@ -823,14 +811,6 @@ const char kRemoteDebuggingPort[] = "remote-debugging-port";
// Enable remote debug / automation shell on the specified port.
const char kRemoteShellPort[] = "remote-shell-port";
-// Causes the renderer process to throw an assertion on launch.
-const char kRendererAssertTest[] = "renderer-assert-test";
-
-#if !defined(OFFICIAL_BUILD)
-// Causes the renderer process to throw an assertion on launch.
-const char kRendererCheckFalseTest[] = "renderer-check-false-test";
-#endif
-
// Indicates the last session should be restored on startup. This overrides
// the preferences value and is primarily intended for testing. The value of
// this switch is the number of tabs to wait until loaded before
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 8eae4b0..82069b5 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -163,7 +163,6 @@ extern const char kFocusExistingTabOnOpen[];
extern const char kFirstRun[];
extern const char kForceAppsPromoVisible[];
extern const char kForceCompositingMode[];
-extern const char kForceFieldTestNameAndValue[];
extern const char kForceRendererAccessibility[];
extern const char kForceStubLibcros[];
extern const char kGSSAPILibraryName[];
@@ -230,7 +229,6 @@ extern const char kPurgeMemoryButton[];
extern const char kReloadKilledTabs[];
extern const char kRemoteDebuggingPort[];
extern const char kRemoteShellPort[];
-extern const char kRendererAssertTest[];
extern const char kRestoreLastSession[];
extern const char kSbInfoURLPrefix[];
extern const char kSbMacKeyURLPrefix[];
@@ -341,10 +339,6 @@ extern const char kWebSocketLiveExperimentHost[];
extern const char kExposePrivateExtensionApi[];
#endif
-#if !defined(OFFICIAL_BUILD)
-extern const char kRendererCheckFalseTest[];
-#endif
-
#if defined(HAVE_XINPUT2)
extern const char kTouchDevices[];
#endif