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

Unified Diff: printing/printing_context_win.cc

Issue 947223003: Merge: Block nested system print dialogs on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2272
Patch Set: 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 678e7f2c6ff6fb6b5c608aff8fc0aa8a14b7b3f6..11fea9270ea5245e60634a67da708cb6f3009ac1 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -363,7 +363,7 @@ PrintingContext::Result PrintingContextWin::InitializeSettings(
HWND PrintingContextWin::GetRootWindow(gfx::NativeView view) {
HWND window = NULL;
#if defined(USE_AURA)
- if (view)
+ if (view && view->GetHost())
window = view->GetHost()->GetAcceleratedWidget();
#else
if (view && IsWindow(view)) {
« 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