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, |