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

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

Issue 1294663003: Fix various issues from r343263. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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_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();
-}

Powered by Google App Engine
This is Rietveld 408576698