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

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

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698