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

Unified Diff: chrome/browser/sync/sync_error_notifier_factory_ash.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_error_notifier_ash_unittest.cc ('k') | chrome/browser/sync/sync_global_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_error_notifier_factory_ash.cc
diff --git a/chrome/browser/sync/sync_error_notifier_factory_ash.cc b/chrome/browser/sync/sync_error_notifier_factory_ash.cc
index 6145c1590b54817b9f1998f942ab56f416d36833..2af253c951b8b3758583fa4e827367adf44722c8 100644
--- a/chrome/browser/sync/sync_error_notifier_factory_ash.cc
+++ b/chrome/browser/sync/sync_error_notifier_factory_ash.cc
@@ -36,19 +36,19 @@ SyncErrorNotifierFactory* SyncErrorNotifierFactory::GetInstance() {
KeyedService* SyncErrorNotifierFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
if (!ash::Shell::HasInstance())
- return NULL;
+ return nullptr;
Profile* profile = static_cast<Profile*>(context);
browser_sync::ProfileSyncService* profile_sync_service =
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 SyncErrorNotifier(sync_error_controller, profile);
}
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash_unittest.cc ('k') | chrome/browser/sync/sync_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698