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

Unified Diff: extensions/browser/content_hash_fetcher.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/content_hash_fetcher.cc
diff --git a/extensions/browser/content_hash_fetcher.cc b/extensions/browser/content_hash_fetcher.cc
index aa3475e94e1c448dfbb04a287e6a5eebef154832..571e02b20766469a87122896738cddd44d6f438a 100644
--- a/extensions/browser/content_hash_fetcher.cc
+++ b/extensions/browser/content_hash_fetcher.cc
@@ -254,7 +254,7 @@ void ContentHashFetcherJob::DoneCheckingForVerifiedContents(bool found) {
static int WriteFileHelper(const base::FilePath& path,
scoped_ptr<std::string> content) {
base::FilePath dir = path.DirName();
- return (base::CreateDirectoryAndGetError(dir, NULL) &&
+ return (base::CreateDirectoryAndGetError(dir, nullptr) &&
base::WriteFile(path, content->data(), content->size()));
}
@@ -341,7 +341,7 @@ bool ContentHashFetcherJob::CreateHashes(const base::FilePath& hashes_file) {
if (IsCancelled())
return false;
// Make sure the directory exists.
- if (!base::CreateDirectoryAndGetError(hashes_file.DirName(), NULL))
+ if (!base::CreateDirectoryAndGetError(hashes_file.DirName(), nullptr))
return false;
if (!verified_contents_.get()) {

Powered by Google App Engine
This is Rietveld 408576698