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

Unified Diff: components/webdata/common/web_data_service_base.cc

Issue 13898011: Move SupportsUserData code into AutofillWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and test fix Created 7 years, 8 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/webdata/common/web_data_service_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_data_service_base.cc
diff --git a/components/webdata/common/web_data_service_base.cc b/components/webdata/common/web_data_service_base.cc
index e1a67a56d2b506bd98b5c1cbba7f666e3342ec44..9b361977c595415d5acc2e727e5bacb6aa40cb86 100644
--- a/components/webdata/common/web_data_service_base.cc
+++ b/components/webdata/common/web_data_service_base.cc
@@ -45,9 +45,6 @@ void WebDataServiceBase::WebDatabaseLoadFailed(sql::InitStatus status) {
void WebDataServiceBase::ShutdownOnUIThread() {
db_loaded_ = false;
- BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE,
- base::Bind(&WebDataServiceBase::ShutdownOnDBThread, this));
}
void WebDataServiceBase::Init() {
@@ -100,18 +97,5 @@ WebDatabase* WebDataServiceBase::GetDatabase() {
return wdbs_->GetDatabaseOnDB();
}
-base::SupportsUserData* WebDataServiceBase::GetDBUserData() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
- if (!db_thread_user_data_)
- db_thread_user_data_.reset(new SupportsUserDataAggregatable());
- return db_thread_user_data_.get();
-}
-
WebDataServiceBase::~WebDataServiceBase() {
- DCHECK(!db_thread_user_data_.get()) << "Forgot to call ShutdownOnUIThread?";
-}
-
-void WebDataServiceBase::ShutdownOnDBThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
- db_thread_user_data_.reset();
}
« no previous file with comments | « components/webdata/common/web_data_service_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698