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

Unified Diff: sync/util/extensions_activity.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « sync/util/extensions_activity.h ('k') | sync/util/get_session_name.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/extensions_activity.cc
diff --git a/sync/util/extensions_activity.cc b/sync/util/extensions_activity.cc
deleted file mode 100644
index dcccb263f0b5d05401e1973c4ae3a0e619369f39..0000000000000000000000000000000000000000
--- a/sync/util/extensions_activity.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 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 "sync/util/extensions_activity.h"
-
-namespace syncer {
-
-ExtensionsActivity::Record::Record()
- : bookmark_write_count(0U) {}
-
-ExtensionsActivity::Record::~Record() {}
-
-ExtensionsActivity::ExtensionsActivity() {}
-
-ExtensionsActivity::~ExtensionsActivity() {}
-
-void ExtensionsActivity::GetAndClearRecords(Records* buffer) {
- base::AutoLock lock(records_lock_);
- buffer->clear();
- buffer->swap(records_);
-}
-
-void ExtensionsActivity::PutRecords(const Records& records) {
- base::AutoLock lock(records_lock_);
- for (Records::const_iterator i = records.begin(); i != records.end(); ++i) {
- records_[i->first].extension_id = i->second.extension_id;
- records_[i->first].bookmark_write_count += i->second.bookmark_write_count;
- }
-}
-
-void ExtensionsActivity::UpdateRecord(const std::string& extension_id) {
- base::AutoLock lock(records_lock_);
- Record& record = records_[extension_id];
- record.extension_id = extension_id;
- record.bookmark_write_count++;
-}
-
-} // namespace syncer
« no previous file with comments | « sync/util/extensions_activity.h ('k') | sync/util/get_session_name.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698