summaryrefslogtreecommitdiffstats
path: root/ui/views/view_model.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 16:29:39 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 16:29:39 +0000
commite6634c458e7602c446c91cda0fc34a6e672f75fc (patch)
treea2a2c151a8715035e90b044ac7f74361d402920c /ui/views/view_model.cc
parentebecfb068bcfc514f5d4310acd6b6b5b9c772a77 (diff)
downloadchromium_src-e6634c458e7602c446c91cda0fc34a6e672f75fc.zip
chromium_src-e6634c458e7602c446c91cda0fc34a6e672f75fc.tar.gz
chromium_src-e6634c458e7602c446c91cda0fc34a6e672f75fc.tar.bz2
Adds some debugging to figure out if TabStrip is being passed invalid index
Syzy says we're accessing beyond the size of TabStrip::tabs_. This adds some code in hopes of isolating that. BUG=294353 TEST=none R=ben@chromium.org Review URL: https://codereview.chromium.org/25021007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/view_model.cc')
-rw-r--r--ui/views/view_model.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/view_model.cc b/ui/views/view_model.cc
index 5f492f5..c6b4672 100644
--- a/ui/views/view_model.cc
+++ b/ui/views/view_model.cc
@@ -17,8 +17,8 @@ ViewModel::~ViewModel() {
}
void ViewModel::Add(View* view, int index) {
- DCHECK_LE(index, static_cast<int>(entries_.size()));
- DCHECK_GE(index, 0);
+ CHECK_LE(index, static_cast<int>(entries_.size()));
+ CHECK_GE(index, 0);
Entry entry;
entry.view = view;
entries_.insert(entries_.begin() + index, entry);