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

Unified Diff: chrome/browser/sync/sync_global_error_factory.cc

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 years, 2 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/sync/sync_global_error_factory.h ('k') | chrome/browser/sync/sync_global_error_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_global_error_factory.cc
diff --git a/chrome/browser/sync/sync_global_error_factory.cc b/chrome/browser/sync/sync_global_error_factory.cc
index a2a88b4a54bf60c39cd168504b1eba119869f466..64fa2c23e1cba26fad0f0f26e9b68023eb653c64 100644
--- a/chrome/browser/sync/sync_global_error_factory.cc
+++ b/chrome/browser/sync/sync_global_error_factory.cc
@@ -44,7 +44,7 @@ KeyedService* SyncGlobalErrorFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
#if defined(USE_ASH)
if (ash::Shell::HasInstance())
- return NULL;
+ return nullptr;
#endif
Profile* profile = static_cast<Profile*>(context);
@@ -52,12 +52,12 @@ KeyedService* SyncGlobalErrorFactory::BuildServiceInstanceFor(
ProfileSyncServiceFactory::GetForProfile(profile);
if (!profile_sync_service)
- return NULL;
+ return nullptr;
syncer::SyncErrorController* sync_error_controller =
profile_sync_service->sync_error_controller();
if (!sync_error_controller)
- return NULL;
+ return nullptr;
return new SyncGlobalError(GlobalErrorServiceFactory::GetForProfile(profile),
LoginUIServiceFactory::GetForProfile(profile),
« no previous file with comments | « chrome/browser/sync/sync_global_error_factory.h ('k') | chrome/browser/sync/sync_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698