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

Unified Diff: chrome/browser/ui/gtk/tabs/drag_data.cc

Issue 8918021: Fixing browser crash in the linux tab dragging code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 9 years 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 | chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/drag_data.cc
diff --git a/chrome/browser/ui/gtk/tabs/drag_data.cc b/chrome/browser/ui/gtk/tabs/drag_data.cc
index 99588aa3b006950e43813c55a0ed8016794615f9..7490fd71d687c9851222dcbe85ce8bdd8f53fac3 100644
--- a/chrome/browser/ui/gtk/tabs/drag_data.cc
+++ b/chrome/browser/ui/gtk/tabs/drag_data.cc
@@ -98,7 +98,8 @@ TabContentsWrapper* DragData::GetSourceTabContentsWrapper() {
}
TabContents* DragData::GetSourceTabContents() {
- return GetSourceTabData()->contents_->tab_contents();
+ TabContentsWrapper* contents = GetSourceTabData()->contents_;
+ return contents ? contents->tab_contents(): NULL;
}
DraggedTabData* DragData::GetSourceTabData() {
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698