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

Issue 2035293002: Remove URLRequest::GetResponseCookies and URLRequestJob::GetResponseCookies. (Closed)

Created:
4 years, 6 months ago by martijnc
Modified:
4 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLRequest::GetResponseCookies and URLRequestJob::GetResponseCookies. The response cookies are currently copied for every request and made available to consumers. The cookies are then passed through different parts of the code needlessly as they are only used in one place. This CL removes most of that logic. The sole consumer of the response cookies now retrieves them from the response headers. Some tests that were relying on the old (cookies are already parsed) logic are updated as well. BUG=598452 Committed: https://crrev.com/e74f617c9ca6471411b874fdf43db60a3ef59ccf Cr-Commit-Position: refs/heads/master@{#399939}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : comments mmenke #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : comments rogerta #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -155 lines) Patch
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 1 2 4 chunks +0 lines, -4 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 3 chunks +1 line, -4 lines 0 comments Download
M google_apis/gaia/gaia_auth_fetcher.cc View 1 2 3 2 chunks +16 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 25 chunks +42 lines, -50 lines 0 comments Download
M google_apis/gaia/mock_url_fetcher_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/oauth2_access_token_fetcher_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/oauth2_api_call_flow.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_response_headers.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.h View 3 chunks +0 lines, -3 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher.h View 2 chunks +0 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 2 chunks +0 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M net/url_request/url_fetcher_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.h View 2 chunks +0 lines, -11 lines 0 comments Download
M net/url_request/url_request.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M net/url_request/url_request_job.h View 1 chunk +0 lines, -6 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M sync/internal_api/http_bridge_unittest.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
martijnc
Can you review this patch? Thanks! https://codereview.chromium.org/2035293002/diff/60001/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/2035293002/diff/60001/net/url_request/url_fetcher_impl_unittest.cc#newcode1524 net/url_request/url_fetcher_impl_unittest.cc:1524: EXPECT_FALSE(delegate.fetcher()->GetResponseHeaders()); Because the ...
4 years, 6 months ago (2016-06-07 21:17:12 UTC) #7
mmenke
LGTM, thanks for taking care of this! https://codereview.chromium.org/2035293002/diff/60001/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/2035293002/diff/60001/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc#newcode67 chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc:67: const char ...
4 years, 6 months ago (2016-06-08 14:46:44 UTC) #8
martijnc
+tnagel@chromium.org: components/policy/core/common/cloud/device_management_service.cc chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc +nparker@chromium.org: chrome/browser/safe_browsing/* +thakis@chromium.org: chrome/service/cloud_print/* +rogerta@chromium.org: chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc google_apis/gaia/* +stanisc@chromium.org: sync/internal_api/http_bridge_unittest.cc Can you take ...
4 years, 6 months ago (2016-06-08 16:08:10 UTC) #10
Nico
chrome/service/cloud_print lgtm
4 years, 6 months ago (2016-06-08 16:22:31 UTC) #11
Nathan Parker
lgtm safe_browsing
4 years, 6 months ago (2016-06-08 16:33:57 UTC) #12
stanisc
sync/internal_api/http_bridge_unittest.cc lgtm
4 years, 6 months ago (2016-06-08 17:27:51 UTC) #13
Thiemo Nagel
On 2016/06/08 16:08:10, martijnc wrote: > components/policy/core/common/cloud/device_management_service.cc > chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc */policy/* LGTM
4 years, 6 months ago (2016-06-14 14:31:24 UTC) #14
Roger Tawa OOO till Jul 10th
lgtm for inline_login_ui_browsertest.cc and google_apis with couple of nits below. https://codereview.chromium.org/2035293002/diff/100001/google_apis/gaia/gaia_auth_fetcher.cc File google_apis/gaia/gaia_auth_fetcher.cc (right): https://codereview.chromium.org/2035293002/diff/100001/google_apis/gaia/gaia_auth_fetcher.cc#newcode75 ...
4 years, 6 months ago (2016-06-14 15:57:40 UTC) #15
martijnc
https://codereview.chromium.org/2035293002/diff/100001/google_apis/gaia/gaia_auth_fetcher.cc File google_apis/gaia/gaia_auth_fetcher.cc (right): https://codereview.chromium.org/2035293002/diff/100001/google_apis/gaia/gaia_auth_fetcher.cc#newcode75 google_apis/gaia/gaia_auth_fetcher.cc:75: void GetCookiesFromResponse(net::HttpResponseHeaders* headers, On 2016/06/14 at 15:57:40, Roger Tawa ...
4 years, 6 months ago (2016-06-14 22:18:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035293002/140001
4 years, 6 months ago (2016-06-15 16:05:46 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 6 months ago (2016-06-15 17:19:40 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 17:22:36 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e74f617c9ca6471411b874fdf43db60a3ef59ccf
Cr-Commit-Position: refs/heads/master@{#399939}

Powered by Google App Engine
This is Rietveld 408576698