diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 20:14:04 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 20:14:04 +0000 |
commit | 2468fc57ba4b174cb315ca88067905fd45a78533 (patch) | |
tree | 73d4dee5a992615ff80f4b46425a7191772fcd8a /webkit/extensions | |
parent | 0335b08e730b0ba14e2125da6bcdd8bc826b6853 (diff) | |
download | chromium_src-2468fc57ba4b174cb315ca88067905fd45a78533.zip chromium_src-2468fc57ba4b174cb315ca88067905fd45a78533.tar.gz chromium_src-2468fc57ba4b174cb315ca88067905fd45a78533.tar.bz2 |
Move benchmark extension example to new location and clean it up to use browser actions rather than toolstrips.
BUG=26106
TEST=none
Review URL: http://codereview.chromium.org/384065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/extensions')
-rw-r--r-- | webkit/extensions/v8/benchmarking_extension.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc index 501d483..4823718 100644 --- a/webkit/extensions/v8/benchmarking_extension.cc +++ b/webkit/extensions/v8/benchmarking_extension.cc @@ -64,7 +64,7 @@ class BenchmarkingWrapper : public v8::Extension { } static v8::Handle<v8::Value> GetCounter(const v8::Arguments& args) { - if (!args.Length() || !args[0]->IsString()) + if (!args.Length() || !args[0]->IsString() || !StatsTable::current()) return v8::Undefined(); // Extract the name argument |