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

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

Issue 9836122: Check that an instance variable is non-NULL before use. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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_controller2.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
index 80a41562ae777683d6b77a350644e7d496ff21a0..1671f40f8714e9d58157fa90202883e2e508edb4 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
@@ -981,6 +981,7 @@ void TabDragController2::DetachIntoNewBrowserAndRunMoveLoop(
void TabDragController2::RunMoveLoop() {
move_loop_browser_view_ = GetAttachedBrowserView();
+ DCHECK(move_loop_browser_view_);
move_loop_browser_view_->set_move_observer(this);
is_dragging_window_ = true;
bool destroyed = false;
« 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