| Index: extensions/common/value_counter.cc
|
| diff --git a/chrome/common/extensions/value_counter.cc b/extensions/common/value_counter.cc
|
| similarity index 73%
|
| rename from chrome/common/extensions/value_counter.cc
|
| rename to extensions/common/value_counter.cc
|
| index 156e3adef00263f9265dfeb90a7477ba517bbef0..983041ea01d0f930e00d38208610e7b863502407 100644
|
| --- a/chrome/common/extensions/value_counter.cc
|
| +++ b/extensions/common/value_counter.cc
|
| @@ -2,39 +2,28 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/common/extensions/value_counter.h"
|
| -
|
| -#include "base/values.h"
|
| +#include "extensions/common/value_counter.h"
|
|
|
| #include <algorithm>
|
|
|
| +#include "base/values.h"
|
| +
|
| namespace extensions {
|
|
|
| -ValueCounter::ValueCounter() {
|
| -}
|
| +ValueCounter::ValueCounter() {}
|
|
|
| -ValueCounter::~ValueCounter() {
|
| -}
|
| +ValueCounter::~ValueCounter() {}
|
|
|
| ValueCounter::Entry::Entry(const base::Value& value)
|
| - : value_(value.DeepCopy()),
|
| - count_(1) {
|
| -}
|
| + : value_(value.DeepCopy()), count_(1) {}
|
|
|
| -ValueCounter::Entry::~Entry() {
|
| -}
|
| +ValueCounter::Entry::~Entry() {}
|
|
|
| -int ValueCounter::Entry::Increment() {
|
| - return ++count_;
|
| -}
|
| +int ValueCounter::Entry::Increment() { return ++count_; }
|
|
|
| -int ValueCounter::Entry::Decrement() {
|
| - return --count_;
|
| -}
|
| +int ValueCounter::Entry::Decrement() { return --count_; }
|
|
|
| -int ValueCounter::Add(const base::Value& value) {
|
| - return AddImpl(value, true);
|
| -}
|
| +int ValueCounter::Add(const base::Value& value) { return AddImpl(value, true); }
|
|
|
| int ValueCounter::Remove(const base::Value& value) {
|
| for (EntryList::iterator it = entries_.begin(); it != entries_.end(); it++) {
|
|
|