| Index: chrome/browser/printing/print_preview_tab_controller.cc
|
| diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
|
| index 04f1bdb35240518f838b88004e0b67261285e3b0..63da491503603cb5e5ad6220d93b9dc090ad4588 100644
|
| --- a/chrome/browser/printing/print_preview_tab_controller.cc
|
| +++ b/chrome/browser/printing/print_preview_tab_controller.cc
|
| @@ -25,6 +25,7 @@
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
|
| +#include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
|
| #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
|
| #include "chrome/common/chrome_content_client.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| @@ -40,7 +41,6 @@
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_contents_delegate.h"
|
| -#include "ui/web_dialogs/constrained_web_dialog_ui.h"
|
| #include "ui/web_dialogs/web_dialog_delegate.h"
|
| #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
|
| #include "webkit/plugins/webplugininfo.h"
|
| @@ -49,7 +49,6 @@ using content::NativeWebKeyboardEvent;
|
| using content::NavigationController;
|
| using content::WebContents;
|
| using content::WebUIMessageHandler;
|
| -using ui::ConstrainedWebDialogDelegate;
|
| using ui::WebDialogDelegate;
|
| using ui::WebDialogWebContentsDelegate;
|
|
|
| @@ -436,11 +435,10 @@ TabContents* PrintPreviewTabController::CreatePrintPreviewTab(
|
| PrintPreviewWebContentDelegate* pp_wcd =
|
| new PrintPreviewWebContentDelegate(profile, initiator_tab);
|
| ConstrainedWebDialogDelegate* constrained_delegate =
|
| - ui::CreateConstrainedWebDialog(
|
| - profile,
|
| - web_dialog_delegate,
|
| - pp_wcd,
|
| - initiator_tab);
|
| + CreateConstrainedWebDialog(profile,
|
| + web_dialog_delegate,
|
| + pp_wcd,
|
| + initiator_tab->web_contents());
|
| TabContents* preview_tab = constrained_delegate->tab();
|
| EnableInternalPDFPluginForTab(preview_tab);
|
| CoreTabHelper::FromWebContents(preview_tab->web_contents())->
|
|
|