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

Unified Diff: athena/resource_manager/resource_manager_impl.cc

Issue 653563004: NULL -> nullptr under athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 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
Index: athena/resource_manager/resource_manager_impl.cc
diff --git a/athena/resource_manager/resource_manager_impl.cc b/athena/resource_manager/resource_manager_impl.cc
index b88d7d762fd4d8d5af6c0d651bc71ecf32343e56..771ad22de570c4a627ba03cd91baab71d177dfe7 100644
--- a/athena/resource_manager/resource_manager_impl.cc
+++ b/athena/resource_manager/resource_manager_impl.cc
@@ -147,7 +147,7 @@ class ResourceManagerImpl : public ResourceManager,
};
namespace {
-ResourceManagerImpl* instance = NULL;
+ResourceManagerImpl* instance = nullptr;
// We allow this many activities to be visible. All others must be at state of
// invisible or below.
@@ -367,7 +367,7 @@ void ResourceManagerImpl::TryToUnloadAnActivity() {
}
// Check if / which activity we want to unload.
- Activity* oldest_media_activity = NULL;
+ Activity* oldest_media_activity = nullptr;
std::vector<Activity*> unloadable_activities;
for (std::vector<Activity*>::iterator it = activity_list_.begin();
it != activity_list_.end(); ++it) {
@@ -476,14 +476,14 @@ ResourceManager* ResourceManager::Get() {
void ResourceManager::Shutdown() {
DCHECK(instance);
delete instance;
- instance = NULL;
+ instance = nullptr;
}
ResourceManager::ResourceManager() {}
ResourceManager::~ResourceManager() {
DCHECK(instance);
- instance = NULL;
+ instance = nullptr;
}
} // namespace athena
« no previous file with comments | « athena/resource_manager/memory_pressure_notifier_unittest.cc ('k') | athena/screen/modal_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698