summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:20:51 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:20:51 +0000
commit03a9f69a4c78bc5c957762ba7c7ac89a6d5f36ec (patch)
tree6ef7f2354ee788c85339b9062736efac8b7d726c
parentf3af59e1ea6b110fb245e632312cab48ddfad48c (diff)
downloadchromium_src-03a9f69a4c78bc5c957762ba7c7ac89a6d5f36ec.zip
chromium_src-03a9f69a4c78bc5c957762ba7c7ac89a6d5f36ec.tar.gz
chromium_src-03a9f69a4c78bc5c957762ba7c7ac89a6d5f36ec.tar.bz2
Remove deprecated methods from StatsCounter.
Review URL: http://codereview.chromium.org/57078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12924 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/stats_counters.h15
-rw-r--r--base/stats_table_unittest.cc6
2 files changed, 3 insertions, 18 deletions
diff --git a/base/stats_counters.h b/base/stats_counters.h
index cd7fa9d..bb87e61 100644
--- a/base/stats_counters.h
+++ b/base/stats_counters.h
@@ -94,11 +94,6 @@ class StatsCounter {
Add(1);
}
- // TODO(jar) temporary hack include method till base and chrome use new name.
- void Increment(int value) {
- Add(value);
- }
-
virtual void Add(int value) {
int* loc = GetPtr();
if (loc)
@@ -114,11 +109,6 @@ class StatsCounter {
Add(-value);
}
- // TODO(jar) temporary hack includes method till base and chrome use new name.
- void Decrement(int value) {
- Add(-value);
- }
-
// Is this counter enabled?
// Returns false if table is full.
bool Enabled() {
@@ -209,11 +199,6 @@ class StatsCounterTimer : protected StatsCounter {
Add(static_cast<int>(time.InMilliseconds()));
}
- // TODO(jar) temporary hack include method till base and chrome use new name.
- void IncrementTimer(base::TimeDelta time) {
- AddTime(time);
- }
-
protected:
// Compute the delta between start and stop, in milliseconds.
void Record() {
diff --git a/base/stats_table_unittest.cc b/base/stats_table_unittest.cc
index 5d1c841..b1ca089 100644
--- a/base/stats_table_unittest.cc
+++ b/base/stats_table_unittest.cc
@@ -280,11 +280,11 @@ TEST_F(StatsTableTest, StatsCounter) {
EXPECT_EQ(0, table.GetCounterValue("c:foo"));
// Test Decrement.
- foo.Decrement(1);
+ foo.Subtract(1);
EXPECT_EQ(-1, table.GetCounterValue("c:foo"));
- foo.Decrement(0);
+ foo.Subtract(0);
EXPECT_EQ(-1, table.GetCounterValue("c:foo"));
- foo.Decrement(-1);
+ foo.Subtract(-1);
EXPECT_EQ(0, table.GetCounterValue("c:foo"));
DeleteShmem(kTableName);