Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: extensions/common/value_counter.cc

Issue 237723004: Move EventBindings to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/value_counter.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++) {
« no previous file with comments | « extensions/common/value_counter.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698