diff options
author | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 15:33:36 +0000 |
---|---|---|
committer | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 15:33:36 +0000 |
commit | d57ec15827deeb83e1a5de35a43de3b91827ce85 (patch) | |
tree | 33f89253155584535227f009c1409539debfd3ad /chrome/browser/webdata/web_data_service.cc | |
parent | e861bba25cc2ff73a505119ed1f521a6fd4aa41b (diff) | |
download | chromium_src-d57ec15827deeb83e1a5de35a43de3b91827ce85.zip chromium_src-d57ec15827deeb83e1a5de35a43de3b91827ce85.tar.gz chromium_src-d57ec15827deeb83e1a5de35a43de3b91827ce85.tar.bz2 |
Remove dependency of WebData on content
This CL uses MessageLoopProxy instead of BrowserThread. It also moves autofill
test code that was in web_data_service_test_util.h to autofill/.
BUG=248049
TBR=joth, stuartmorgan, piman
Review URL: https://chromiumcodereview.appspot.com/16174013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_data_service.cc')
-rw-r--r-- | chrome/browser/webdata/web_data_service.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc index 4c8a2c2..15dd155 100644 --- a/chrome/browser/webdata/web_data_service.cc +++ b/chrome/browser/webdata/web_data_service.cc @@ -4,6 +4,7 @@ #include "chrome/browser/webdata/web_data_service.h" +#include "base/bind.h" #include "base/stl_util.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/webdata/keyword_table.h" @@ -13,6 +14,7 @@ #include "chrome/browser/webdata/web_intents_table.h" #include "chrome/common/chrome_notification_types.h" #include "components/webdata/common/web_database_service.h" +#include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_service.h" #include "content/public/browser/notification_source.h" @@ -41,7 +43,8 @@ WDKeywordsResult::~WDKeywordsResult() {} WebDataService::WebDataService(scoped_refptr<WebDatabaseService> wdbs, const ProfileErrorCallback& callback) - : WebDataServiceBase(wdbs, callback) { + : WebDataServiceBase(wdbs, callback, + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)) { } ////////////////////////////////////////////////////////////////////////////// @@ -115,7 +118,8 @@ WebDataServiceBase::Handle WebDataService::GetWebAppImages( //////////////////////////////////////////////////////////////////////////////// WebDataService::WebDataService() - : WebDataServiceBase(NULL, ProfileErrorCallback()) { + : WebDataServiceBase(NULL, ProfileErrorCallback(), + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)) { } WebDataService::~WebDataService() { |