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

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

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/utility/profile_import_handler.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | 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 e05da3800ac2a48bbf6f9c7629f5da55f80925a5..6422cb46f1e4ed43204a569183fb7f165c360bec 100644
--- a/components/webdata/common/web_data_service_base.cc
+++ b/components/webdata/common/web_data_service_base.cc
@@ -61,14 +61,14 @@ void WebDataServiceBase::CancelRequest(Handle h) {
}
bool WebDataServiceBase::IsDatabaseLoaded() {
- if (!wdbs_)
+ if (!wdbs_.get())
return false;
return wdbs_->db_loaded();
}
void WebDataServiceBase::RegisterDBLoadedCallback(
const base::Callback<void(void)>& callback) {
- if (!wdbs_)
+ if (!wdbs_.get())
return;
wdbs_->RegisterDBLoadedCallback(callback);
}
« no previous file with comments | « chrome/utility/profile_import_handler.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698