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/api/storage/storage_api.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/api/storage/storage_api.cc
diff --git a/extensions/browser/api/storage/storage_api.cc b/extensions/browser/api/storage/storage_api.cc
index a29bed886b0186b4c99f3572c480ebec3943df6d..f44884197b06c709da3453cd7a240f2bc3b22bfc 100644
--- a/extensions/browser/api/storage/storage_api.cc
+++ b/extensions/browser/api/storage/storage_api.cc
@@ -41,7 +41,7 @@ bool SettingsFunction::ShouldSkipQuotaLimiting() const {
ExtensionFunction::ResponseAction SettingsFunction::Run() {
std::string settings_namespace_string;
EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &settings_namespace_string));
- args_->Remove(0, NULL);
+ args_->Remove(0, nullptr);
settings_namespace_ =
settings_namespace::FromString(settings_namespace_string);
EXTENSION_FUNCTION_VALIDATE(settings_namespace_ !=
@@ -176,7 +176,7 @@ void GetModificationQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) {
ExtensionFunction::ResponseValue StorageStorageAreaGetFunction::RunWithStorage(
ValueStore* storage) {
- base::Value* input = NULL;
+ base::Value* input = nullptr;
if (!args_->Get(0, &input))
return BadMessage();
@@ -219,7 +219,7 @@ ExtensionFunction::ResponseValue StorageStorageAreaGetFunction::RunWithStorage(
ExtensionFunction::ResponseValue
StorageStorageAreaGetBytesInUseFunction::RunWithStorage(ValueStore* storage) {
- base::Value* input = NULL;
+ base::Value* input = nullptr;
if (!args_->Get(0, &input))
return BadMessage();
@@ -255,7 +255,7 @@ StorageStorageAreaGetBytesInUseFunction::RunWithStorage(ValueStore* storage) {
ExtensionFunction::ResponseValue StorageStorageAreaSetFunction::RunWithStorage(
ValueStore* storage) {
- base::DictionaryValue* input = NULL;
+ base::DictionaryValue* input = nullptr;
if (!args_->GetDictionary(0, &input))
return BadMessage();
return UseWriteResult(storage->Set(ValueStore::DEFAULTS, *input), storage);
@@ -268,7 +268,7 @@ void StorageStorageAreaSetFunction::GetQuotaLimitHeuristics(
ExtensionFunction::ResponseValue
StorageStorageAreaRemoveFunction::RunWithStorage(ValueStore* storage) {
- base::Value* input = NULL;
+ base::Value* input = nullptr;
if (!args_->Get(0, &input))
return BadMessage();

Powered by Google App Engine
This is Rietveld 408576698