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

Unified Diff: content/browser/download/save_package.cc

Issue 302043005: Change SavePackage to use GetVisibleEntry instead of GetActiveEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change from LastCommitted to Visible. Created 6 years, 7 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: content/browser/download/save_package.cc
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index f98db115ac5585c4e379678c4520b8c6111850d1..90ab2a5056d0d1aad5a5e0ff63215994082ea05e 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -259,9 +259,9 @@ GURL SavePackage::GetUrlToBeSaved() {
// "real" url of the page) from the NavigationEntry because it reflects its
// origin rather than the displayed one (returned by GetURL) which may be
// different (like having "view-source:" on the front).
- NavigationEntry* active_entry =
- web_contents()->GetController().GetActiveEntry();
- return active_entry->GetURL();
+ NavigationEntry* visible_entry =
+ web_contents()->GetController().GetVisibleEntry();
+ return visible_entry->GetURL();
}
void SavePackage::Cancel(bool user_action) {
« 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