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

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

Issue 16296002: 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: Rebased 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/password_manager/password_store_factory.cc
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
index 1c9a4384b5666ec3503ee622edeb0c53869ab921..b0f48c86520009a3bd71c53a6ea703c499f1c65c 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -184,10 +184,10 @@ PasswordStoreFactory::BuildServiceInstanceFor(
#else
NOTIMPLEMENTED();
#endif
- if (!ps)
+ if (!ps.get())
delete login_db;
- if (!ps || !ps->Init()) {
+ if (!ps.get() || !ps->Init()) {
NOTREACHED() << "Could not initialize password manager.";
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698