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

Unified Diff: chrome/browser/extensions/settings/settings_sync_unittest.cc

Issue 9414020: [Sync] Switch Extension Settings DTC to use ProfilesyncComponentsFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK Created 8 years, 10 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/extensions/settings/settings_sync_unittest.cc
diff --git a/chrome/browser/extensions/settings/settings_sync_unittest.cc b/chrome/browser/extensions/settings/settings_sync_unittest.cc
index bc51b62fdfeab1868496f2381208bd839bca6924..4ecabf5b73fc93dd05dede78345e929278ee15e3 100644
--- a/chrome/browser/extensions/settings/settings_sync_unittest.cc
+++ b/chrome/browser/extensions/settings/settings_sync_unittest.cc
@@ -166,8 +166,10 @@ class TestingSettingsStorageFactory : public SettingsStorageFactory {
std::map<std::string, TestingSettingsStorage*> created_;
};
-void AssignSettingsService(SyncableService** dst, SyncableService* src) {
- *dst = src;
+void AssignSettingsService(SyncableService** dst,
+ const SettingsFrontend* frontend,
+ syncable::ModelType type) {
+ *dst = frontend->GetBackendForSync(type);
}
} // namespace
@@ -203,11 +205,8 @@ class ExtensionSettingsSyncTest : public testing::Test {
// Gets the SyncableService for the given sync type.
SyncableService* GetSyncableService(syncable::ModelType model_type) {
- SyncableService* settings_service = NULL;
- frontend_->RunWithSyncableService(
- model_type, base::Bind(&AssignSettingsService, &settings_service));
MessageLoop::current()->RunAllPending();
- return settings_service;
+ return frontend_->GetBackendForSync(model_type);
}
// Gets all the sync data from the SyncableService for a sync type as a map

Powered by Google App Engine
This is Rietveld 408576698