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

Unified Diff: chrome/browser/sync/glue/autofill_profile_data_type_controller.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/sync/glue/autofill_profile_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
index d9069e5c25ac8aab351991ea14c7e1d50a2a856b..479fe764fc07dd220b310a080b0cb9e1f5833ed9 100644
--- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
+++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
@@ -41,7 +41,7 @@ syncer::ModelSafeGroup
void AutofillProfileDataTypeController::WebDatabaseLoaded() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (web_data_service_)
+ if (web_data_service_.get())
web_data_service_->RemoveDBObserver(this);
OnModelLoaded();
}
@@ -53,7 +53,7 @@ void AutofillProfileDataTypeController::OnPersonalDataChanged() {
personal_data_->RemoveObserver(this);
web_data_service_ = AutofillWebDataService::FromBrowserContext(profile());
- if (!web_data_service_)
+ if (!web_data_service_.get())
return;
if (web_data_service_->IsDatabaseLoaded())
@@ -86,7 +86,7 @@ bool AutofillProfileDataTypeController::StartModels() {
web_data_service_ = AutofillWebDataService::FromBrowserContext(profile());
- if (!web_data_service_)
+ if (!web_data_service_.get())
return false;
if (web_data_service_->IsDatabaseLoaded())
@@ -100,7 +100,7 @@ void AutofillProfileDataTypeController::StopModels() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(state() == STOPPING || state() == NOT_RUNNING);
- if (web_data_service_)
+ if (web_data_service_.get())
web_data_service_->RemoveDBObserver(this);
personal_data_->RemoveObserver(this);
« no previous file with comments | « chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc ('k') | chrome/browser/sync/glue/favicon_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698