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

Unified Diff: components/webdata/common/web_data_service_test_util.h

Issue 16174013: Remove dependency of WebData on content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 7 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: components/webdata/common/web_data_service_test_util.h
diff --git a/components/webdata/common/web_data_service_test_util.h b/components/webdata/common/web_data_service_test_util.h
index 4f0f6e577eaa78ba9fbc44192f03513e235fc588..420a8e9d1f190f1256d05e653f73f973701c0dff 100644
--- a/components/webdata/common/web_data_service_test_util.h
+++ b/components/webdata/common/web_data_service_test_util.h
@@ -10,34 +10,6 @@
#include "chrome/browser/webdata/token_web_data.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/browser/webdata/web_data_service_factory.h"
-#include "content/public/browser/browser_thread.h"
-
-template <class T>
-class AutofillWebDataServiceConsumer: public WebDataServiceConsumer {
- public:
- AutofillWebDataServiceConsumer() : handle_(0) {}
- virtual ~AutofillWebDataServiceConsumer() {}
-
- virtual void OnWebDataServiceRequestDone(WebDataService::Handle handle,
- const WDTypedResult* result) {
- using content::BrowserThread;
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- handle_ = handle;
- const WDResult<T>* wrapped_result =
- static_cast<const WDResult<T>*>(result);
- result_ = wrapped_result->GetValue();
-
- base::MessageLoop::current()->Quit();
- }
-
- WebDataService::Handle handle() { return handle_; }
- T& result() { return result_; }
-
- private:
- WebDataService::Handle handle_;
- T result_;
- DISALLOW_COPY_AND_ASSIGN(AutofillWebDataServiceConsumer);
-};
// Base class for mocks of WebDataService, that does nothing in
// Shutdown().
« no previous file with comments | « components/webdata/common/web_data_service_base.cc ('k') | components/webdata/common/web_database_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698