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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 25783002: Abstract content::BrowserThread usage out of AutofillWebDataBackendImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 7 years, 2 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 | « components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/webdata/autofill_webdata_service.cc
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.cc b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
index bc4f65a779b8c49d28c06ae655094df686e4eebc..dbf9854407d8a1cefd7df036ffb696df1773b4b5 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
@@ -4,6 +4,7 @@
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "components/autofill/core/browser/autofill_country.h"
@@ -17,6 +18,7 @@
#include "components/autofill/core/common/form_field_data.h"
#include "components/webdata/common/web_data_service_backend.h"
#include "components/webdata/common/web_database_service.h"
+#include "content/public/browser/browser_thread.h"
using base::Bind;
using base::Time;
@@ -38,6 +40,8 @@ AutofillWebDataService::AutofillWebDataService(
autofill_backend_ = new AutofillWebDataBackendImpl(
wdbs_->GetBackend(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
on_changed_callback);
}
@@ -45,7 +49,10 @@ AutofillWebDataService::AutofillWebDataService()
: WebDataServiceBase(NULL, WebDataServiceBase::ProfileErrorCallback(),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)),
weak_ptr_factory_(this),
- autofill_backend_(new AutofillWebDataBackendImpl(NULL, base::Closure())) {
+ autofill_backend_(new AutofillWebDataBackendImpl(NULL,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
+ base::Closure())) {
}
void AutofillWebDataService::ShutdownOnUIThread() {
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698