summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
authormlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-23 18:52:50 +0000
committermlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-23 18:52:50 +0000
commit7dc1bf9738f847dc0c1321d4f3bc6bd2a1d74573 (patch)
treec7c4fe0d8dac7a064bd639a0a49ec461479a6427 /webkit/extensions
parentdbbbd0c9de5cd224b1dbb064455fb8a28985a1ab (diff)
downloadchromium_src-7dc1bf9738f847dc0c1321d4f3bc6bd2a1d74573.zip
chromium_src-7dc1bf9738f847dc0c1321d4f3bc6bd2a1d74573.tar.gz
chromium_src-7dc1bf9738f847dc0c1321d4f3bc6bd2a1d74573.tar.bz2
Revert "Show a warning message if the cache might not be cleared correctly between runs."
This reverts commit f98a0891c5baa2bc173fd93f22c18d5686d2c810 / revision 50623. Review URL: http://codereview.chromium.org/2856015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/extensions')
-rw-r--r--webkit/extensions/v8/benchmarking_extension.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc
index 8eb0f00..362a928 100644
--- a/webkit/extensions/v8/benchmarking_extension.cc
+++ b/webkit/extensions/v8/benchmarking_extension.cc
@@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/command_line.h"
#include "base/stats_table.h"
-#include "chrome/common/chrome_switches.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCache.h"
#include "webkit/extensions/v8/benchmarking_extension.h"
#include "webkit/glue/webkit_glue.h"
@@ -37,10 +35,6 @@ class BenchmarkingWrapper : public v8::Extension {
" native function GetCounter();"
" return GetCounter(name);"
"};"
- "chrome.benchmarking.isSingleProcess = function() {"
- " native function IsSingleProcess();"
- " return IsSingleProcess();"
- "};"
) {}
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
@@ -51,8 +45,6 @@ class BenchmarkingWrapper : public v8::Extension {
return v8::FunctionTemplate::New(ClearCache);
} else if (name->Equals(v8::String::New("GetCounter"))) {
return v8::FunctionTemplate::New(GetCounter);
- } else if (name->Equals(v8::String::New("IsSingleProcess"))) {
- return v8::FunctionTemplate::New(IsSingleProcess);
}
return v8::Handle<v8::FunctionTemplate>();
}
@@ -81,11 +73,6 @@ class BenchmarkingWrapper : public v8::Extension {
int counter = StatsTable::current()->GetCounterValue(name);
return v8::Integer::New(counter);
}
-
- static v8::Handle<v8::Value> IsSingleProcess(const v8::Arguments& args) {
- return v8::Boolean::New(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSingleProcess));
- }
};
v8::Extension* BenchmarkingExtension::Get() {