Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 10822022: Added extra DCHECK() to eliminate possible NULL deref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove .gitmodule Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index c0757320ac40b5752178fa615f0ca13f9feac230..c9c6f26f031161b4bbfb40e9f02ae40368d56fda 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1610,7 +1610,7 @@ void TabDragController::ResetSelection(TabStripModel* model) {
}
void TabDragController::RevertDragAt(size_t drag_index) {
- DCHECK(started_drag_);
+ DCHECK(started_drag_ && source_tabstrip_);
James Hawkins 2012/07/26 00:10:50 nit: Don't put two conditions in one DCHECK, other
TabDragData* data = &(drag_data_[drag_index]);
if (attached_tabstrip_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698