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

Unified Diff: chrome/browser/webdata/web_data_service.cc

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
« no previous file with comments | « chrome/browser/webdata/token_web_data.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_data_service.cc
diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc
index 4c8a2c27c4e9b44de7ae3b4c8c1e8f993afe2f75..15dd155e363416730601cd3ba50dde44a33061ab 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() {
« no previous file with comments | « chrome/browser/webdata/token_web_data.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698