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

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

Issue 2824283004: Mark some PrintPreviewUI methods as const. (Closed)
Patch Set: Created 3 years, 8 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_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 8ab3ddd53057ed58b09fc5ba6d62b5c18a8ac284..9dc9d445f6404e5d34f27a50800b1962ce1fca9f 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -1019,7 +1019,7 @@ void PrintPreviewHandler::PrintToPdf() {
!select_file_dialog_->IsRunning(platform_util::GetTopLevel(
preview_web_contents()->GetNativeView()))) {
// Pre-populating select file dialog with print job title.
- base::string16 print_job_title_utf16 =
+ const base::string16& print_job_title_utf16 =
print_preview_ui()->initiator_title();
#if defined(OS_WIN)
« no previous file with comments | « chrome/browser/printing/print_preview_data_service.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698