From c9a76096ea08d20c13e0b1a15a51faa8f2e519d5 Mon Sep 17 00:00:00 2001 From: "rafaelw@chromium.org" Date: Thu, 23 Apr 2009 15:09:58 +0000 Subject: Refactor index value capture outside of DCHECK to fix build failure in release. Review URL: http://codereview.chromium.org/93060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14305 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_tabs_module.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser') 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; } -- cgit v1.1