summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 04:38:38 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 04:38:38 +0000
commit835d7c811c98f179090c57a827a9c9baa2130435 (patch)
treeedcff6b2c9029c6f867f650d762837f2485d99fb /webkit/extensions
parent4b1deac7ba7e7a6bf0425e6ed4db26e0c29daa7f (diff)
downloadchromium_src-835d7c811c98f179090c57a827a9c9baa2130435.zip
chromium_src-835d7c811c98f179090c57a827a9c9baa2130435.tar.gz
chromium_src-835d7c811c98f179090c57a827a9c9baa2130435.tar.bz2
Move Stats, histograms, and field trial into a metrics subdirectory of base and
put them in the base namespace. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/extensions')
-rw-r--r--webkit/extensions/v8/benchmarking_extension.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc
index 1a30968..b7abc57 100644
--- a/webkit/extensions/v8/benchmarking_extension.cc
+++ b/webkit/extensions/v8/benchmarking_extension.cc
@@ -1,13 +1,14 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// 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 "webkit/extensions/v8/benchmarking_extension.h"
+
#include "base/command_line.h"
-#include "base/stats_table.h"
+#include "base/metrics/stats_table.h"
#include "base/time.h"
#include "net/http/http_network_layer.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCache.h"
-#include "webkit/extensions/v8/benchmarking_extension.h"
#include "webkit/glue/webkit_glue.h"
using WebKit::WebCache;
@@ -107,7 +108,7 @@ class BenchmarkingWrapper : public v8::Extension {
}
static v8::Handle<v8::Value> GetCounter(const v8::Arguments& args) {
- if (!args.Length() || !args[0]->IsString() || !StatsTable::current())
+ if (!args.Length() || !args[0]->IsString() || !base::StatsTable::current())
return v8::Undefined();
// Extract the name argument
@@ -116,7 +117,7 @@ class BenchmarkingWrapper : public v8::Extension {
name[1] = ':';
args[0]->ToString()->WriteAscii(&name[2], 0, sizeof(name) - 3);
- int counter = StatsTable::current()->GetCounterValue(name);
+ int counter = base::StatsTable::current()->GetCounterValue(name);
return v8::Integer::New(counter);
}