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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 10764009: Merge 145424 - Fix crash due to incorrectly parented window (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
===================================================================
--- chrome/browser/ui/webui/print_preview/print_preview_handler.cc (revision 145763)
+++ chrome/browser/ui/webui/print_preview/print_preview_handler.cc (working copy)
@@ -546,7 +546,7 @@
void PrintPreviewHandler::HandleSignin(const ListValue* /*args*/) {
gfx::NativeWindow modal_parent =
- preview_web_contents()->GetView()->GetTopLevelNativeWindow();
+ platform_util::GetTopLevel(preview_web_contents()->GetNativeView());
print_dialog_cloud::CreateCloudPrintSigninDialog(
preview_web_contents()->GetBrowserContext(),
modal_parent,
@@ -570,7 +570,7 @@
DCHECK_GT(data->size(), 0U);
gfx::NativeWindow modal_parent =
- preview_web_contents()->GetView()->GetTopLevelNativeWindow();
+ platform_util::GetTopLevel(preview_web_contents()->GetNativeView());
print_dialog_cloud::CreatePrintDialogForBytes(
preview_web_contents()->GetBrowserContext(),
modal_parent,
« 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