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

Unified Diff: extensions/browser/computed_hashes.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/computed_hashes.cc
diff --git a/extensions/browser/computed_hashes.cc b/extensions/browser/computed_hashes.cc
index 3c89770e0f282162580e67592c64fa51a66b6e03..8b00f62191ac47941df4ff23168823806afeffe6 100644
--- a/extensions/browser/computed_hashes.cc
+++ b/extensions/browser/computed_hashes.cc
@@ -36,7 +36,7 @@ bool ComputedHashes::Reader::InitFromFile(const base::FilePath& path) {
if (!base::ReadFileToString(path, &contents))
return false;
- base::DictionaryValue* top_dictionary = NULL;
+ base::DictionaryValue* top_dictionary = nullptr;
scoped_ptr<base::Value> value(base::JSONReader::Read(contents));
if (!value.get() || !value->GetAsDictionary(&top_dictionary))
return false;
@@ -47,12 +47,12 @@ bool ComputedHashes::Reader::InitFromFile(const base::FilePath& path) {
if (!top_dictionary->GetInteger(kVersionKey, &version) || version != kVersion)
return false;
- base::ListValue* all_hashes = NULL;
+ base::ListValue* all_hashes = nullptr;
if (!top_dictionary->GetList(kFileHashesKey, &all_hashes))
return false;
for (size_t i = 0; i < all_hashes->GetSize(); i++) {
- base::DictionaryValue* dictionary = NULL;
+ base::DictionaryValue* dictionary = nullptr;
if (!all_hashes->GetDictionary(i, &dictionary))
return false;
@@ -69,7 +69,7 @@ bool ComputedHashes::Reader::InitFromFile(const base::FilePath& path) {
return false;
}
- base::ListValue* hashes_list = NULL;
+ base::ListValue* hashes_list = nullptr;
if (!dictionary->GetList(kBlockHashesKey, &hashes_list))
return false;

Powered by Google App Engine
This is Rietveld 408576698