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

Unified Diff: sync/syncable/scoped_parent_child_index_updater.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/syncable/scoped_parent_child_index_updater.h ('k') | sync/syncable/syncable-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/scoped_parent_child_index_updater.cc
diff --git a/sync/syncable/scoped_parent_child_index_updater.cc b/sync/syncable/scoped_parent_child_index_updater.cc
deleted file mode 100644
index dc48edd166efbf001583986653f0f01efdb552f7..0000000000000000000000000000000000000000
--- a/sync/syncable/scoped_parent_child_index_updater.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2012 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/syncable/scoped_parent_child_index_updater.h"
-
-#include "sync/syncable/parent_child_index.h"
-
-namespace syncer {
-namespace syncable {
-
-ScopedParentChildIndexUpdater::ScopedParentChildIndexUpdater(
- const ScopedKernelLock& proof_of_lock,
- EntryKernel* entry,
- ParentChildIndex* index)
- : entry_(entry), index_(index) {
- if (ParentChildIndex::ShouldInclude(entry_)) {
- index_->Remove(entry_);
- }
-}
-
-ScopedParentChildIndexUpdater::~ScopedParentChildIndexUpdater() {
- if (ParentChildIndex::ShouldInclude(entry_)) {
- index_->Insert(entry_);
- }
-}
-
-} // namespace syncable
-} // namespace syncer
« no previous file with comments | « sync/syncable/scoped_parent_child_index_updater.h ('k') | sync/syncable/syncable-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698