From 2468fc57ba4b174cb315ca88067905fd45a78533 Mon Sep 17 00:00:00 2001 From: "erikkay@chromium.org" Date: Thu, 12 Nov 2009 20:14:04 +0000 Subject: 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 --- webkit/extensions/v8/benchmarking_extension.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit/extensions') 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 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 -- cgit v1.1