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

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

Issue 7190001: [Sync] Split DirectoryChangeListener for thread-safety (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 6 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/conflict_resolver.cc
diff --git a/chrome/browser/sync/engine/conflict_resolver.cc b/chrome/browser/sync/engine/conflict_resolver.cc
index 60fb6e813c5e501ec40d4eb42488dcfaadad5ae8..0e1b9d7dcef23b1115244d0a54931b8f4c561d65 100644
--- a/chrome/browser/sync/engine/conflict_resolver.cc
+++ b/chrome/browser/sync/engine/conflict_resolver.cc
@@ -9,6 +9,7 @@
#include <set>
#include "base/metrics/histogram.h"
+#include "base/tracked.h"
#include "chrome/browser/sync/engine/syncer.h"
#include "chrome/browser/sync/engine/syncer_util.h"
#include "chrome/browser/sync/protocol/service_constants.h"
@@ -432,7 +433,7 @@ bool ConflictResolver::LogAndSignalIfConflictStuck(
bool ConflictResolver::ResolveSimpleConflicts(const ScopedDirLookup& dir,
StatusController* status) {
- WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__);
+ WriteTransaction trans(dir, syncable::SYNCER, FROM_HERE);
bool forward_progress = false;
const ConflictProgress& progress = status->conflict_progress();
// First iterate over simple conflict items (those that belong to no set).
@@ -477,7 +478,7 @@ bool ConflictResolver::ResolveConflicts(const ScopedDirLookup& dir,
bool rv = false;
if (ResolveSimpleConflicts(dir, status))
rv = true;
- WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__);
+ WriteTransaction trans(dir, syncable::SYNCER, FROM_HERE);
set<ConflictSet*>::const_iterator set_it;
for (set_it = progress.ConflictSetsBegin();
set_it != progress.ConflictSetsEnd();

Powered by Google App Engine
This is Rietveld 408576698