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

Unified Diff: chrome/browser/sync/profile_sync_service_password_unittest.cc

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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_password_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
index c00ac4b1e99eb4c004844bb51100c479cf5652e0..f052f0886d0f1b1a2462edd7ed8070fe36e50837 100644
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
@@ -184,10 +184,11 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
&factory_, &profile_, "test_user", false, root_task, node_task));
service_->RegisterPreferences();
profile_.GetPrefs()->SetBoolean(prefs::kSyncPasswords, true);
+ EXPECT_CALL(profile_, GetProfileSyncService()).WillRepeatedly(
+ Return(service_.get()));
PasswordDataTypeController* data_type_controller =
new PasswordDataTypeController(&factory_,
- &profile_,
- service_.get());
+ &profile_);
EXPECT_CALL(factory_, CreatePasswordSyncComponents(_, _, _)).
Times(AtLeast(1)). // Can be more if we hit NEEDS_CRYPTO.

Powered by Google App Engine
This is Rietveld 408576698