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

Unified Diff: chrome/browser/extensions/extension_function.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nat_policy.cc Created 9 years, 4 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: chrome/browser/extensions/extension_function.cc
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
index 0374dd06a0a9d1f6c47d7d17835f03d373d3528d..939c6aa7795b1a17c75802479e9f4aa8f1750c41 100644
--- a/chrome/browser/extensions/extension_function.cc
+++ b/chrome/browser/extensions/extension_function.cc
@@ -86,7 +86,7 @@ void ExtensionFunction::Run() {
bool ExtensionFunction::HasOptionalArgument(size_t index) {
Value* value;
- return args_->Get(index, &value) && !value->IsType(Value::TYPE_NULL);
+ return args_->Get(index, &value) && !value->IsNull();
}
void ExtensionFunction::SendResponseImpl(base::ProcessHandle process,

Powered by Google App Engine
This is Rietveld 408576698