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

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

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates from nasko comments Created 7 years, 1 month 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 fc0c71b76403b25eecfff4d52a468a9efb28f07d..d5ee8c7cd06df0b35d899d22ae20559be417b8cd 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -627,7 +627,7 @@ void PrintPreviewHandler::HandleGetPreview(const ListValue* args) {
initiator->GetTitle());
std::string url;
content::NavigationEntry* entry =
- initiator->GetController().GetActiveEntry();
Charlie Reis 2013/11/12 01:09:29 Aha! That's a real bug in Chrome today. If you h
jww 2013/11/12 22:32:50 Awesome!
+ initiator->GetController().GetLastCommittedEntry();
if (entry)
url = entry->GetVirtualURL().spec();
settings->SetString(printing::kSettingHeaderFooterURL, url);

Powered by Google App Engine
This is Rietveld 408576698