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

Unified Diff: extensions/common/manifest_handlers/requirements_info.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/manifest_handlers/requirements_info.cc
diff --git a/extensions/common/manifest_handlers/requirements_info.cc b/extensions/common/manifest_handlers/requirements_info.cc
index 9a2a22b92aaf39ddfb247ecbd48aa2754b749178..8308a690d8329e5eb5ec7761b72eed7b9b2dfdeb 100644
--- a/extensions/common/manifest_handlers/requirements_info.cc
+++ b/extensions/common/manifest_handlers/requirements_info.cc
@@ -22,7 +22,7 @@ RequirementsInfo::RequirementsInfo(const Manifest* manifest)
window_shape(false) {
// Before parsing requirements from the manifest, automatically default the
// NPAPI plugin requirement based on whether it includes NPAPI plugins.
- const base::ListValue* list_value = NULL;
+ const base::ListValue* list_value = nullptr;
npapi = manifest->GetList(keys::kPlugins, &list_value) &&
!list_value->empty();
}
@@ -69,7 +69,7 @@ bool RequirementsHandler::Parse(Extension* extension, base::string16* error) {
return true;
}
- const base::DictionaryValue* requirements_value = NULL;
+ const base::DictionaryValue* requirements_value = nullptr;
if (!extension->manifest()->GetDictionary(keys::kRequirements,
&requirements_value)) {
*error = base::ASCIIToUTF16(errors::kInvalidRequirements);
@@ -104,7 +104,7 @@ bool RequirementsHandler::Parse(Extension* extension, base::string16* error) {
}
}
} else if (iter.key() == "3D") {
- const base::ListValue* features = NULL;
+ const base::ListValue* features = nullptr;
if (!requirement_value->GetListWithoutPathExpansion("features",
&features) ||
!features) {

Powered by Google App Engine
This is Rietveld 408576698