Index: chrome/browser/extensions/extension_bookmarks_module.cc |
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc |
index dce4b6f02ee1a1f370ec643469b3f0041d92cae9..7235449970eb5eb85d691a48fab902413fce22ce 100644 |
--- a/chrome/browser/extensions/extension_bookmarks_module.cc |
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc |
@@ -285,7 +285,7 @@ bool GetBookmarksFunction::RunImpl() { |
scoped_ptr<ListValue> json(new ListValue()); |
Value* arg0; |
EXTENSION_FUNCTION_VALIDATE(args_->Get(0, &arg0)); |
- if (arg0->IsType(Value::TYPE_LIST)) { |
+ if (arg0->AsList()) { |
const ListValue* ids = static_cast<const ListValue*>(arg0); |
Evan Martin
2011/08/23 19:04:11
if (ListValue ids = ...
tfarina
2011/08/23 20:00:33
Done.
|
size_t count = ids->GetSize(); |
EXTENSION_FUNCTION_VALIDATE(count > 0); |