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

Unified Diff: views/widget/native_widget_views.cc

Issue 7978011: Possible workaround for bug with loading pages in a background tab (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implementing request to give aura build default info Created 9 years, 3 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 | « chrome/browser/renderer_host/render_widget_host_view_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_views.cc
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc
index c0d4af264af4c47ee293f076eb49b25b6624ae56..65dfac4bca504ad7e23389b3f47f87abab4fe2cb 100644
--- a/views/widget/native_widget_views.cc
+++ b/views/widget/native_widget_views.cc
@@ -171,11 +171,13 @@ const Widget* NativeWidgetViews::GetWidget() const {
}
gfx::NativeView NativeWidgetViews::GetNativeView() const {
- return GetParentNativeWidget()->GetNativeView();
+ return GetParentNativeWidget() ?
+ GetParentNativeWidget()->GetNativeView() : NULL;
}
gfx::NativeWindow NativeWidgetViews::GetNativeWindow() const {
- return GetParentNativeWidget()->GetNativeWindow();
+ return GetParentNativeWidget() ?
+ GetParentNativeWidget()->GetNativeWindow() : NULL;
}
Widget* NativeWidgetViews::GetTopLevelWidget() {
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698