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

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

Issue 2108833002: Remove Simplify Page option from Print Preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark histogram entries as unused Created 4 years, 6 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
-}
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698