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

Unified Diff: extensions/common/manifest_handlers/nacl_modules_handler.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/nacl_modules_handler.cc
diff --git a/extensions/common/manifest_handlers/nacl_modules_handler.cc b/extensions/common/manifest_handlers/nacl_modules_handler.cc
index 6715b2e4133ac2e85d333602cc03729b38026ccc..61125d640ba934473a383fcc554bdd2c66660820 100644
--- a/extensions/common/manifest_handlers/nacl_modules_handler.cc
+++ b/extensions/common/manifest_handlers/nacl_modules_handler.cc
@@ -31,7 +31,7 @@ const NaClModuleInfo::List* NaClModuleInfo::GetNaClModules(
const Extension* extension) {
NaClModuleData* data = static_cast<NaClModuleData*>(
extension->GetManifestData(keys::kNaClModules));
- return data ? &data->nacl_modules_ : NULL;
+ return data ? &data->nacl_modules_ : nullptr;
}
NaClModulesHandler::NaClModulesHandler() {
@@ -41,7 +41,7 @@ NaClModulesHandler::~NaClModulesHandler() {
}
bool NaClModulesHandler::Parse(Extension* extension, base::string16* error) {
- const base::ListValue* list_value = NULL;
+ const base::ListValue* list_value = nullptr;
if (!extension->manifest()->GetList(keys::kNaClModules, &list_value)) {
*error = base::ASCIIToUTF16(errors::kInvalidNaClModules);
return false;
@@ -50,7 +50,7 @@ bool NaClModulesHandler::Parse(Extension* extension, base::string16* error) {
scoped_ptr<NaClModuleData> nacl_module_data(new NaClModuleData);
for (size_t i = 0; i < list_value->GetSize(); ++i) {
- const base::DictionaryValue* module_value = NULL;
+ const base::DictionaryValue* module_value = nullptr;
if (!list_value->GetDictionary(i, &module_value)) {
*error = base::ASCIIToUTF16(errors::kInvalidNaClModules);
return false;

Powered by Google App Engine
This is Rietveld 408576698