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

Unified Diff: components/offline_pages/core/background/save_page_request.cc

Issue 2713013002: Track original URL when downloading a redirected page (Closed)
Patch Set: A little update Created 3 years, 10 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: components/offline_pages/core/background/save_page_request.cc
diff --git a/components/offline_pages/core/background/save_page_request.cc b/components/offline_pages/core/background/save_page_request.cc
index 02019dec5238914ed3bc00383b5476d2a2ab109b..9b19dc4d429cad74f36178d480e7796d62e8cc37 100644
--- a/components/offline_pages/core/background/save_page_request.cc
+++ b/components/offline_pages/core/background/save_page_request.cc
@@ -47,7 +47,8 @@ SavePageRequest::SavePageRequest(const SavePageRequest& other)
completed_attempt_count_(other.completed_attempt_count_),
last_attempt_time_(other.last_attempt_time_),
user_requested_(other.user_requested_),
- state_(other.state_) {}
+ state_(other.state_),
+ original_url_(other.original_url_) {}
SavePageRequest::~SavePageRequest() {}
@@ -59,7 +60,7 @@ bool SavePageRequest::operator==(const SavePageRequest& other) const {
started_attempt_count_ == other.started_attempt_count_ &&
completed_attempt_count_ == other.completed_attempt_count_ &&
last_attempt_time_ == other.last_attempt_time_ &&
- state_ == other.state_;
+ state_ == other.state_ && original_url_ == other.original_url_;
}
void SavePageRequest::MarkAttemptStarted(const base::Time& start_time) {

Powered by Google App Engine
This is Rietveld 408576698