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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.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/profile_sync_service_autofill_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
index 4437e8829c164ce89c098211315fe732ef84b291..b6d966dc97e5e93187dfc51f2887917d5d11f652 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -16,6 +16,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/task.h"
#include "base/time.h"
+#include "base/tracked.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill_common_test.h"
#include "chrome/browser/sync/abstract_profile_sync_service_test.h"
@@ -491,10 +492,10 @@ static const bool kLoggingInfo = true;
class WriteTransactionTest: public WriteTransaction {
public:
WriteTransactionTest(const syncable::ScopedDirLookup& directory,
- WriterTag writer, const char* source_file,
- int line,
+ WriterTag writer,
+ const tracked_objects::Location& from_here,
scoped_ptr<WaitableEvent> *wait_for_syncapi)
- : WriteTransaction(directory, writer, source_file, line),
+ : WriteTransaction(directory, writer, from_here),
wait_for_syncapi_(wait_for_syncapi) { }
virtual void NotifyTransactionComplete(syncable::ModelTypeBitSet types) {
@@ -552,7 +553,7 @@ class FakeServerUpdater: public base::RefCountedThreadSafe<FakeServerUpdater> {
(*wait_for_start_)->Signal();
// Create write transaction.
- WriteTransactionTest trans(dir, UNITTEST, __FILE__, __LINE__,
+ WriteTransactionTest trans(dir, UNITTEST, FROM_HERE,
wait_for_syncapi_);
// Create actual entry based on autofill protobuf information.
« no previous file with comments | « chrome/browser/sync/js_transaction_observer.cc ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698