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

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

Issue 951883002: [Password Manager Cleanup] Replaces NULL -> nullptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Vaclav's comments. Created 5 years, 10 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 bd788b8674c4a8dddc4523e64c3a3af53cb63dd5..29b6b875de8df9c5715d6ff6c62c9b4bb23b6ecd 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -102,14 +102,14 @@ scoped_refptr<PasswordStore> PasswordStoreFactory::GetForProfile(
ServiceAccessType sat) {
if (sat == ServiceAccessType::IMPLICIT_ACCESS && profile->IsOffTheRecord()) {
NOTREACHED() << "This profile is OffTheRecord";
- return NULL;
+ return nullptr;
}
PasswordStoreFactory* factory = GetInstance();
PasswordStoreService* service = static_cast<PasswordStoreService*>(
factory->GetServiceForBrowserContext(profile, true));
if (!service)
- return NULL;
+ return nullptr;
return service->GetPasswordStore();
}
@@ -271,7 +271,7 @@ KeyedService* PasswordStoreFactory::BuildServiceInstanceFor(
!ps->Init(
sync_start_util::GetFlareForSyncableService(profile->GetPath()))) {
NOTREACHED() << "Could not initialize password manager.";
- return NULL;
+ return nullptr;
}
return new PasswordStoreService(ps);

Powered by Google App Engine
This is Rietveld 408576698