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

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.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/guest_view/mime_handler_view/mime_handler_view_guest.cc
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
index 9e094127a7a6b1a0f3017dd1bdc6a2426422b2ff..04740cfc85e0734cf28c65ade5659a59be459119 100644
--- a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
@@ -31,7 +31,7 @@ GuestViewBase* MimeHandlerViewGuest::Create(
content::BrowserContext* browser_context,
int guest_instance_id) {
if (!extensions::FeatureSwitch::mime_handler_view()->IsEnabled())
- return NULL;
+ return nullptr;
return new MimeHandlerViewGuest(browser_context, guest_instance_id);
}
@@ -71,7 +71,7 @@ void MimeHandlerViewGuest::CreateWebContents(
GURL mime_handler_extension_url(extension_src);
if (!mime_handler_extension_url.is_valid()) {
- callback.Run(NULL);
+ callback.Run(nullptr);
return;
}
@@ -83,7 +83,7 @@ void MimeHandlerViewGuest::CreateWebContents(
if (!mime_handler_extension) {
LOG(ERROR) << "Extension for mime_type not found, mime_type = "
<< orig_mime_type;
- callback.Run(NULL);
+ callback.Run(nullptr);
return;
}

Powered by Google App Engine
This is Rietveld 408576698