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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_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: 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 | « no previous file | views/widget/native_widget_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_views.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.cc b/chrome/browser/renderer_host/render_widget_host_view_views.cc
index 7b35392287959ff50f06e6513d7d73d73757219f..420815834d0c26fe92a1b1316dbdc5d69cba843b 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_views.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_views.cc
@@ -985,9 +985,12 @@ void RenderWidgetHostViewViews::GetDefaultScreenInfo(
void RenderWidgetHostViewViews::GetScreenInfo(WebKit::WebScreenInfo* results) {
#if !defined(USE_AURA)
views::Widget* widget = GetWidget() ? GetWidget()->GetTopLevelWidget() : NULL;
- if (widget)
+ if (widget && widget->GetNativeView())
content::GetScreenInfoFromNativeWindow(widget->GetNativeView()->window,
results);
+ else
oshima 2011/09/21 04:21:49 can you move #end here so that aura can get defaul
+ RenderWidgetHostView::GetDefaultScreenInfo(results);
+
sadrul 2011/09/21 04:06:11 -newline
#endif
}
« no previous file with comments | « no previous file | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698