summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tabs_module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.cc')
-rw-r--r--chrome/browser/extensions/extension_tabs_module.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc
index 06bbcb5..b4f773a 100644
--- a/chrome/browser/extensions/extension_tabs_module.cc
+++ b/chrome/browser/extensions/extension_tabs_module.cc
@@ -227,8 +227,8 @@ bool MoveTabFunction::RunImpl() {
// -windowId
int new_index;
- DCHECK(args->GetInteger(L"index", &new_index));
- if (new_index < 0) {
+ bool found_index = args->GetInteger(L"index", &new_index);
+ if (!found_index || new_index < 0) {
DCHECK(false);
return false;
}