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

Unified Diff: chrome/browser/password_manager/test_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 | « chrome/browser/password_manager/password_store_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/test_password_store_service.cc
diff --git a/chrome/browser/password_manager/test_password_store_service.cc b/chrome/browser/password_manager/test_password_store_service.cc
index 3916b6e1061ed99388d9a094a887221c2d27b517..209c4ad8f9f20e68a313f1d0fb3ce491d8a9820a 100644
--- a/chrome/browser/password_manager/test_password_store_service.cc
+++ b/chrome/browser/password_manager/test_password_store_service.cc
@@ -11,7 +11,8 @@ KeyedService* TestPasswordStoreService::Build(
content::BrowserContext* /*profile*/) {
scoped_refptr<password_manager::PasswordStore> store(
new password_manager::TestPasswordStore);
- if (!store || !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
+ if (!store.get() ||
+ !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
return NULL;
return new TestPasswordStoreService(store);
}
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698