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

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

Issue 8637006: [Sync] Make syncer commands avoid posting tasks on threads with no work to do (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head, fix windows compile Created 9 years 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
index 71351c487a3fc68640adb6336c94ba9b721e48a4..b0e5f5e248ac0d82a26951b298cd16d81742f5a7 100644
--- a/chrome/browser/sync/engine/resolve_conflicts_command.cc
+++ b/chrome/browser/sync/engine/resolve_conflicts_command.cc
@@ -14,6 +14,16 @@ namespace browser_sync {
ResolveConflictsCommand::ResolveConflictsCommand() {}
ResolveConflictsCommand::~ResolveConflictsCommand() {}
+bool ResolveConflictsCommand::HasCustomGroupsToChange() const {
+ // TODO(akalin): Set to true.
+ return false;
+}
+
+std::set<ModelSafeGroup> ResolveConflictsCommand::GetGroupsToChange(
+ const sessions::SyncSession& session) const {
+ return session.GetEnabledGroupsWithConflicts();
+}
+
void ResolveConflictsCommand::ModelChangingExecuteImpl(
sessions::SyncSession* session) {
ConflictResolver* resolver = session->context()->resolver();

Powered by Google App Engine
This is Rietveld 408576698