Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
index 88d3ef436083a5357aebc831e702e96c0e897c5b..2a875ef3d2413f6fb36fef5e8d2ca0d15928a915 100644 |
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
@@ -505,7 +505,7 @@ void PrintPreviewHandler::PrintToPdf() { |
} else if (!select_file_dialog_ || |
!select_file_dialog_->IsRunning( |
platform_util::GetTopLevel( |
- preview_web_contents()->GetNativeView()))) { |
+ preview_web_contents()->GetView()->GetNativeView()))) { |
PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>( |
web_ui()->GetController()); |
// Pre-populating select file dialog with print job title. |
@@ -582,8 +582,8 @@ void PrintPreviewHandler::OnSigninComplete( |
} |
void PrintPreviewHandler::HandleSignin(const ListValue* /*args*/) { |
- gfx::NativeWindow modal_parent = |
- platform_util::GetTopLevel(preview_web_contents()->GetNativeView()); |
+ gfx::NativeWindow modal_parent = platform_util::GetTopLevel( |
+ preview_web_contents()->GetView()->GetNativeView()); |
print_dialog_cloud::CreateCloudPrintSigninDialog( |
preview_web_contents()->GetBrowserContext(), |
modal_parent, |
@@ -597,8 +597,8 @@ void PrintPreviewHandler::PrintWithCloudPrintDialog( |
// instead of the print preview dialog. |
ReportStats(); |
- gfx::NativeWindow modal_parent = |
- platform_util::GetTopLevel(preview_web_contents()->GetNativeView()); |
+ gfx::NativeWindow modal_parent = platform_util::GetTopLevel( |
+ preview_web_contents()->GetView()->GetNativeView()); |
print_dialog_cloud::CreatePrintDialogForBytes( |
preview_web_contents()->GetBrowserContext(), |
modal_parent, |
@@ -877,7 +877,8 @@ void PrintPreviewHandler::SelectFile(const base::FilePath& default_filename) { |
&file_type_info, |
0, |
FILE_PATH_LITERAL(""), |
- platform_util::GetTopLevel(preview_web_contents()->GetNativeView()), |
+ platform_util::GetTopLevel( |
+ preview_web_contents()->GetView()->GetNativeView()), |
NULL); |
} |