| Index: chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| index 6a7246bdf6a9772ec9e1537713785cc3e2b6a821..49750c202a9f7fe75a7dda05df0749578ee33947 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| @@ -259,8 +259,6 @@ content::WebUIDataSource* CreatePrintPreviewUISource() {
|
| source->AddLocalizedString("printPagesLabel",
|
| IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL);
|
| source->AddLocalizedString("optionsLabel", IDS_PRINT_PREVIEW_OPTIONS_LABEL);
|
| - source->AddLocalizedString("optionDistillPage",
|
| - IDS_PRINT_PREVIEW_OPTION_DISTILL_PAGE);
|
| source->AddLocalizedString("optionHeaderFooter",
|
| IDS_PRINT_PREVIEW_OPTION_HEADER_FOOTER);
|
| source->AddLocalizedString("optionFitToPage",
|
| @@ -410,8 +408,7 @@ PrintPreviewUI::PrintPreviewUI(content::WebUI* web_ui)
|
| handler_(NULL),
|
| source_is_modifiable_(true),
|
| source_has_selection_(false),
|
| - dialog_closed_(false),
|
| - weak_ptr_factory_(this) {
|
| + dialog_closed_(false) {
|
| // Set up the chrome://print/ data source.
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| content::WebUIDataSource::Add(profile, CreatePrintPreviewUISource());
|
| @@ -672,7 +669,3 @@ void PrintPreviewUI::SetPdfSavedClosureForTesting(
|
| const base::Closure& closure) {
|
| handler_->SetPdfSavedClosureForTesting(closure);
|
| }
|
| -
|
| -base::WeakPtr<PrintPreviewUI> PrintPreviewUI::GetWeakPtr() {
|
| - return weak_ptr_factory_.GetWeakPtr();
|
| -}
|
|
|