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

Unified Diff: printing/printing_context_win.cc

Issue 934393003: Block nested system print dialogs on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_crash
Patch Set: Mon Feb 23 09:47:28 PST 2015 Created 5 years, 10 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 | « printing/printing_context_system_dialog_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 7822429baad0f29d8e53f128d7bab073c822bbd8..9d1df52f6708ced00fc4fa2a50d54a041c6d36d3 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -359,7 +359,7 @@ PrintingContext::Result PrintingContextWin::InitializeSettings(
HWND PrintingContextWin::GetRootWindow(gfx::NativeView view) {
HWND window = NULL;
- if (view)
+ if (view && view->GetHost())
window = view->GetHost()->GetAcceleratedWidget();
if (!window) {
// TODO(maruel): crbug.com/1214347 Get the right browser window instead.
« no previous file with comments | « printing/printing_context_system_dialog_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698