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

Unified Diff: extensions/browser/api/web_view/web_view_internal_api.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/api/web_view/web_view_internal_api.cc
diff --git a/extensions/browser/api/web_view/web_view_internal_api.cc b/extensions/browser/api/web_view/web_view_internal_api.cc
index cbacf7e59d82c1ac7b827e5dd61c0d065416c5de..5a7b6fad60c7156d93ebe789e87ddb60566e302c 100644
--- a/extensions/browser/api/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/web_view/web_view_internal_api.cc
@@ -93,7 +93,7 @@ bool WebViewInternalExecuteCodeFunction::Init() {
if (!guest_src_.is_valid())
return false;
- base::DictionaryValue* details_value = NULL;
+ base::DictionaryValue* details_value = nullptr;
if (!args_->GetDictionary(2, &details_value))
return false;
scoped_ptr<InjectDetails> details(new InjectDetails());
@@ -117,7 +117,7 @@ WebViewInternalExecuteCodeFunction::GetScriptExecutor() {
WebViewGuest* guest = WebViewGuest::From(
render_view_host()->GetProcess()->GetID(), guest_instance_id_);
if (!guest)
- return NULL;
+ return nullptr;
return guest->script_executor();
}
@@ -166,7 +166,7 @@ WebContents* WebViewInternalCaptureVisibleRegionFunction::GetWebContentsForID(
int instance_id) {
WebViewGuest* guest = WebViewGuest::From(
render_view_host()->GetProcess()->GetID(), instance_id);
- return guest ? guest->web_contents() : NULL;
+ return guest ? guest->web_contents() : nullptr;
}
void WebViewInternalCaptureVisibleRegionFunction::OnCaptureFailure(

Powered by Google App Engine
This is Rietveld 408576698