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

Unified Diff: chrome/browser/password_manager/mock_password_store_service.cc

Issue 505233004: Remove implicit conversions from scoped_refptr to T* in chrome/browser/password_manager/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/mock_password_store_service.cc
diff --git a/chrome/browser/password_manager/mock_password_store_service.cc b/chrome/browser/password_manager/mock_password_store_service.cc
index 842caa9321aa360362720d5aa2b4664d7611ebb3..7ad2f2497ccd8f5db26a4fa01afa39bf869e98c3 100644
--- a/chrome/browser/password_manager/mock_password_store_service.cc
+++ b/chrome/browser/password_manager/mock_password_store_service.cc
@@ -11,7 +11,8 @@ KeyedService* MockPasswordStoreService::Build(
content::BrowserContext* /*profile*/) {
scoped_refptr<password_manager::PasswordStore> store(
new password_manager::MockPasswordStore);
- if (!store || !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
+ if (!store.get() ||
+ !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
return NULL;
return new MockPasswordStoreService(store);
}
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698