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

Unified Diff: extensions/browser/extension_function.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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/extension_function.cc
diff --git a/extensions/browser/extension_function.cc b/extensions/browser/extension_function.cc
index 4e56265ab213fb899f4fd1884082536eeda2afa9..c9a76ac5a8361b5e4c50501406d41b37dd27669e 100644
--- a/extensions/browser/extension_function.cc
+++ b/extensions/browser/extension_function.cc
@@ -422,7 +422,7 @@ bool ExtensionFunction::ShouldSkipQuotaLimiting() const {
bool ExtensionFunction::HasOptionalArgument(size_t index) {
base::Value* value;
- return args_->Get(index, &value) && !value->IsType(base::Value::TYPE_NULL);
+ return args_->Get(index, &value) && !value->IsType(base::Value::Type::NONE);
}
void ExtensionFunction::SendResponseImpl(bool success) {
« no previous file with comments | « extensions/browser/api/system_network/system_network_apitest.cc ('k') | extensions/browser/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698