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

Unified Diff: content/public/test/test_download_request_handler.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 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
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index 48b74508d176bca8ca1f556466db1e818fab487e..c0f9525704855764b509283be42160281791ce74 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -327,7 +327,9 @@ void TestDownloadRequestHandler::PartialResponseJob::ReportCompletedRequest() {
completed_request->request_headers = request()->extra_request_headers();
completed_request->referrer = request()->referrer();
completed_request->referrer_policy = request()->referrer_policy();
- completed_request->initiator = request()->initiator();
+ completed_request->initiator = request()->initiator().has_value()
+ ? request()->initiator().value()
+ : url::Origin();
completed_request->first_party_for_cookies =
request()->first_party_for_cookies();
completed_request->first_party_url_policy =
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698