| 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 f075900d928d4d352be1f609f46b4c271b9ec08c..4680f74aafcafd2d6ff5aff8c4c7547574dea285 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| @@ -398,8 +398,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());
|
| @@ -664,7 +663,3 @@ void PrintPreviewUI::SetPdfSavedClosureForTesting(
|
| const base::Closure& closure) {
|
| handler_->SetPdfSavedClosureForTesting(closure);
|
| }
|
| -
|
| -base::WeakPtr<PrintPreviewUI> PrintPreviewUI::GetWeakPtr() {
|
| - return weak_ptr_factory_.GetWeakPtr();
|
| -}
|
|
|