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

Unified Diff: net/url_request/url_request.h

Issue 9570005: Added callback to DownloadUrl() so we can find download failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed CLANG issue. Created 8 years, 9 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: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 2c54cbca5a5ba525c2e2245490d2c5e855af1708..b224fc6f54e5de8a04a1b9d9fc7776c023ece1cf 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -324,7 +324,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// The chain of urls traversed by this request. If the request had no
// redirects, this vector will contain one element.
const std::vector<GURL>& url_chain() const { return url_chain_; }
- const GURL& url() const { return url_chain_.back(); }
+ const GURL& url() const {
cbentzel 2012/03/08 17:58:48 Why was this change needed?
ahendrickson 2012/03/08 21:33:07 I was getting a crash because url_chain_ was empty
Randy Smith (Not in Mondays) 2012/03/09 19:14:02 Did you look at why it was empty in those tests wh
ahendrickson 2012/03/09 20:50:08 No, I didn't. I've reverted this, and will see if
+ return url_chain_.size() ? url_chain_.back() : GURL::EmptyGURL();
+ }
// The URL that should be consulted for the third-party cookie blocking
// policy.
« content/public/browser/download_manager.h ('K') | « content/test/mock_download_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698