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

Unified Diff: views/widget/native_widget_gtk.cc

Issue 7529031: NativeWidgetPrivate::CreateNativeWidget should check for NULL on views_delegate (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: patch Created 9 years, 4 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: views/widget/native_widget_gtk.cc
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
index 572c53ac04068b96ced82540203203760ffb3b73..b24412c7dd98b26cc0bd7833d2ae7f58b97365c6 100644
--- a/views/widget/native_widget_gtk.cc
+++ b/views/widget/native_widget_gtk.cc
@@ -2144,7 +2144,7 @@ namespace internal {
// static
NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
NativeWidgetDelegate* delegate) {
- if (Widget::IsPureViews() &&
+ if (Widget::IsPureViews() && ViewsDelegate::views_delegate &&
ViewsDelegate::views_delegate->GetDefaultParentView()) {
return new NativeWidgetViews(delegate);
}
« 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