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

Unified Diff: chrome/browser/sync/engine/resolve_conflicts_command.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
Index: chrome/browser/sync/engine/resolve_conflicts_command.cc
diff --git a/chrome/browser/sync/engine/resolve_conflicts_command.cc b/chrome/browser/sync/engine/resolve_conflicts_command.cc
deleted file mode 100644
index 87b031879c077d463cce21de0f6b26f1d6d10d79..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/engine/resolve_conflicts_command.cc
+++ /dev/null
@@ -1,40 +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 "chrome/browser/sync/engine/resolve_conflicts_command.h"
-
-#include "chrome/browser/sync/engine/conflict_resolver.h"
-#include "chrome/browser/sync/sessions/session_state.h"
-#include "chrome/browser/sync/sessions/sync_session.h"
-#include "chrome/browser/sync/syncable/syncable.h"
-
-namespace browser_sync {
-
-ResolveConflictsCommand::ResolveConflictsCommand() {}
-ResolveConflictsCommand::~ResolveConflictsCommand() {}
-
-std::set<ModelSafeGroup> ResolveConflictsCommand::GetGroupsToChange(
- const sessions::SyncSession& session) const {
- return session.GetEnabledGroupsWithConflicts();
-}
-
-SyncerError ResolveConflictsCommand::ModelChangingExecuteImpl(
- sessions::SyncSession* session) {
- ConflictResolver* resolver = session->context()->resolver();
- DCHECK(resolver);
-
- syncable::Directory* dir = session->context()->directory();
- sessions::StatusController* status = session->mutable_status_controller();
- const sessions::ConflictProgress* progress = status->conflict_progress();
- if (!progress)
- return SYNCER_OK; // Nothing to do.
- syncable::WriteTransaction trans(FROM_HERE, syncable::SYNCER, dir);
- const Cryptographer* cryptographer = dir->GetCryptographer(&trans);
- status->update_conflicts_resolved(
- resolver->ResolveConflicts(&trans, cryptographer, *progress, status));
-
- return SYNCER_OK;
-}
-
-} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698