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

Unified Diff: extensions/browser/app_window/app_window_registry.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: extensions/browser/app_window/app_window_registry.cc
diff --git a/extensions/browser/app_window/app_window_registry.cc b/extensions/browser/app_window/app_window_registry.cc
index 9cd72e967d5cd56cd09f78d23d600b73b5aae222..1390dbd4ab7ab773bae093eb78c9bdca8dd9682b 100644
--- a/extensions/browser/app_window/app_window_registry.cc
+++ b/extensions/browser/app_window/app_window_registry.cc
@@ -151,7 +151,7 @@ AppWindow* AppWindowRegistry::GetAppWindowForRenderViewHost(
return *i;
}
- return NULL;
+ return nullptr;
}
AppWindow* AppWindowRegistry::GetAppWindowForNativeWindow(
@@ -163,12 +163,12 @@ AppWindow* AppWindowRegistry::GetAppWindowForNativeWindow(
return *i;
}
- return NULL;
+ return nullptr;
}
AppWindow* AppWindowRegistry::GetCurrentAppWindowForApp(
const std::string& app_id) const {
- AppWindow* result = NULL;
+ AppWindow* result = nullptr;
for (AppWindowList::const_iterator i = app_windows_.begin();
i != app_windows_.end();
++i) {
@@ -185,7 +185,7 @@ AppWindow* AppWindowRegistry::GetCurrentAppWindowForApp(
AppWindow* AppWindowRegistry::GetAppWindowForAppAndKey(
const std::string& app_id,
const std::string& window_key) const {
- AppWindow* result = NULL;
+ AppWindow* result = nullptr;
for (AppWindowList::const_iterator i = app_windows_.begin();
i != app_windows_.end();
++i) {
@@ -223,7 +223,7 @@ AppWindow* AppWindowRegistry::GetAppWindowForNativeWindowAnyProfile(
return app_window;
}
- return NULL;
+ return nullptr;
}
// static

Powered by Google App Engine
This is Rietveld 408576698