Index: chrome/browser/extensions/settings/settings_apitest.cc |
diff --git a/chrome/browser/extensions/settings/settings_apitest.cc b/chrome/browser/extensions/settings/settings_apitest.cc |
index c5990cc03cfc83501d98df3ab39a07fcf2f5ac0a..0af90ff3f3b76ad43f66abfe823cccd3f66e2788 100644 |
--- a/chrome/browser/extensions/settings/settings_apitest.cc |
+++ b/chrome/browser/extensions/settings/settings_apitest.cc |
@@ -42,6 +42,25 @@ class NoopSyncChangeProcessor : public SyncChangeProcessor { |
virtual ~NoopSyncChangeProcessor() {}; |
}; |
+class SyncChangeProcessorDelegate : public SyncChangeProcessor { |
akalin
2012/03/21 01:23:19
hmm...it seems like we either need to avoid creati
Nicolas Zea
2012/03/21 17:38:27
Yeah, I plan to pull this and some form of the Noo
|
+ public: |
+ explicit SyncChangeProcessorDelegate(SyncChangeProcessor* recipient) |
+ : recipient_(recipient) { |
+ DCHECK(recipient_); |
+ } |
+ |
+ // SyncChangeProcessor implementation. |
+ virtual SyncError ProcessSyncChanges( |
+ const tracked_objects::Location& from_here, |
+ const SyncChangeList& change_list) OVERRIDE { |
+ return recipient_->ProcessSyncChanges(from_here, change_list); |
+ } |
+ |
+ private: |
+ // The recipient of all sync changes. |
+ SyncChangeProcessor* recipient_; |
+}; |
+ |
} // namespace |
class ExtensionSettingsApiTest : public ExtensionApiTest { |
@@ -139,7 +158,8 @@ class ExtensionSettingsApiTest : public ExtensionApiTest { |
EXPECT_FALSE(settings_service->MergeDataAndStartSyncing( |
kModelType, |
SyncDataList(), |
- sync_processor).IsSet()); |
+ scoped_ptr<SyncChangeProcessor>( |
+ new SyncChangeProcessorDelegate(sync_processor))).IsSet()); |
} |
void SendChangesToSyncableService( |