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

Unified Diff: extensions/common/url_pattern.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/common/url_pattern.cc
diff --git a/extensions/common/url_pattern.cc b/extensions/common/url_pattern.cc
index 71b522e1cd0d623b9f0a1b5c629b70b2f8752dfd..e2d6f2c8532b9324b0ad892b6b9c4fe3d019e7c2 100644
--- a/extensions/common/url_pattern.cc
+++ b/extensions/common/url_pattern.cc
@@ -344,7 +344,7 @@ bool URLPattern::SetPort(const std::string& port) {
bool URLPattern::MatchesURL(const GURL& test) const {
const GURL* test_url = &test;
- bool has_inner_url = test.inner_url() != NULL;
+ bool has_inner_url = test.inner_url() != nullptr;
if (has_inner_url) {
if (!test.SchemeIsFileSystem())
@@ -368,7 +368,7 @@ bool URLPattern::MatchesURL(const GURL& test) const {
bool URLPattern::MatchesSecurityOrigin(const GURL& test) const {
const GURL* test_url = &test;
- bool has_inner_url = test.inner_url() != NULL;
+ bool has_inner_url = test.inner_url() != nullptr;
if (has_inner_url) {
if (!test.SchemeIsFileSystem())

Powered by Google App Engine
This is Rietveld 408576698