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

Unified Diff: chrome/browser/webdata/token_web_data.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
Index: chrome/browser/webdata/token_web_data.cc
diff --git a/chrome/browser/webdata/token_web_data.cc b/chrome/browser/webdata/token_web_data.cc
index cd636da347eabaaeebd4937435d650dfcced257d..e659b67557b004043e8361d875f7fe7ba24e844a 100644
--- a/chrome/browser/webdata/token_web_data.cc
+++ b/chrome/browser/webdata/token_web_data.cc
@@ -4,9 +4,11 @@
#include "chrome/browser/webdata/token_web_data.h"
+#include "base/bind.h"
#include "base/stl_util.h"
#include "chrome/browser/webdata/token_service_table.h"
#include "components/webdata/common/web_database_service.h"
+#include "content/public/browser/browser_thread.h"
using base::Bind;
using base::Time;
@@ -59,7 +61,8 @@ class TokenWebDataBackend
TokenWebData::TokenWebData(scoped_refptr<WebDatabaseService> wdbs,
const ProfileErrorCallback& callback)
- : WebDataServiceBase(wdbs, callback),
+ : WebDataServiceBase(wdbs, callback,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)),
token_backend_(new TokenWebDataBackend()) {
}
@@ -83,7 +86,8 @@ WebDataServiceBase::Handle TokenWebData::GetAllTokens(
}
TokenWebData::TokenWebData()
- : WebDataServiceBase(NULL, ProfileErrorCallback()),
+ : WebDataServiceBase(NULL, ProfileErrorCallback(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)),
token_backend_(new TokenWebDataBackend()) {
}
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698