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 9591459848211d8eb7f874c0928d99e0c58d420e..ca6215af40c05aa123d18dd778e92a0149de30f4 100644 |
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
@@ -184,6 +184,18 @@ class WebDataServiceFake : public WebDataService { |
return web_database_; |
} |
+ virtual WebDataService::Handle GetAllTokens( |
+ WebDataServiceConsumer* consumer) OVERRIDE { |
+ // TODO(tim): It would be nice if WebDataService was injected on |
+ // construction of TokenService rather than fetched by Initialize so that |
+ // this isn't necessary (we could pass a NULL service). We currently do |
+ // return it via EXPECT_CALLs, but without depending on order-of- |
+ // initialization (which seems way more fragile) we can't tell which |
+ // component is asking at what time, and some components in these Autofill |
+ // tests require a WebDataService. |
+ return NULL; |
+ } |
+ |
virtual AutocompleteSyncableService* |
GetAutocompleteSyncableService() const OVERRIDE { |
EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB)); |