Added extra DCHECK() to eliminate possible NULL deref.

CID=104002
BUG=
TEST=
TBR=ben

Review URL: https://chromiumcodereview.appspot.com/10822022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148434 0039d316-1c4b-4281-b951-d872f2087c98
parent bfc7dbe6
...@@ -1610,7 +1610,7 @@ void TabDragController::ResetSelection(TabStripModel* model) { ...@@ -1610,7 +1610,7 @@ void TabDragController::ResetSelection(TabStripModel* model) {
} }
void TabDragController::RevertDragAt(size_t drag_index) { void TabDragController::RevertDragAt(size_t drag_index) {
DCHECK(started_drag_); DCHECK(started_drag_ && source_tabstrip_);
TabDragData* data = &(drag_data_[drag_index]); TabDragData* data = &(drag_data_[drag_index]);
if (attached_tabstrip_) { if (attached_tabstrip_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment