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

Unified Diff: components/printing/renderer/print_web_view_helper.cc

Issue 1274653003: Fixing URL on footer when print previewing selection only (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/renderer/print_web_view_helper.cc
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
index d315efae36af809739af88afc543864211135365..9f428eca1b68f6e5b675234a851db9e5e51ebf32 100644
--- a/components/printing/renderer/print_web_view_helper.cc
+++ b/components/printing/renderer/print_web_view_helper.cc
@@ -520,9 +520,7 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
options->SetString("pageNumber",
base::StringPrintf("%d/%d", page_number, total_pages));
- // Fallback to initiator URL and title if it's empty for printed frame.
- base::string16 url = source_frame.document().url().string();
- options->SetString("url", url.empty() ? params.url : url);
+ options->SetString("url", params.url);
base::string16 title = source_frame.document().title();
options->SetString("title", title.empty() ? params.title : title);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698