diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 15:09:58 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 15:09:58 +0000 |
commit | c9a76096ea08d20c13e0b1a15a51faa8f2e519d5 (patch) | |
tree | ce8baa43392fa996b04a935e2970564c70043d02 /chrome/browser/extensions/extension_tabs_module.cc | |
parent | 2126577b81b8ff457c067e7396eea0cf6c780250 (diff) | |
download | chromium_src-c9a76096ea08d20c13e0b1a15a51faa8f2e519d5.zip chromium_src-c9a76096ea08d20c13e0b1a15a51faa8f2e519d5.tar.gz chromium_src-c9a76096ea08d20c13e0b1a15a51faa8f2e519d5.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_tabs_module.cc | 4 |
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; } |