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

Issue 304253010: Add authentication support to AttachmentUploaderImpl. (Closed)

Created:
6 years, 6 months ago by maniscalco
Modified:
6 years, 6 months ago
Reviewers:
pavely
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Add authentication support to AttachmentUploaderImpl. Update AUI to request an access token and send an Authorization header with each requests. If the server responds with 401, AUI invalidates its token, but does not retry. Retries will be implemented in a future CL, probably at a higher level. BUG=371516 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275293

Patch Set 1 #

Total comments: 8

Patch Set 2 : Apply CR feedback from pavely #

Total comments: 2

Patch Set 3 : Apply more CR feedback from pavely #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -58 lines) Patch
M sync/internal_api/attachments/attachment_uploader_impl.cc View 1 7 chunks +122 lines, -36 lines 0 comments Download
M sync/internal_api/attachments/attachment_uploader_impl_unittest.cc View 1 2 13 chunks +328 lines, -18 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_uploader_impl.h View 1 3 chunks +22 lines, -4 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
maniscalco
Hi Pavel, would you please review this change? You may notice some red trybots. Looks ...
6 years, 6 months ago (2014-06-02 18:05:28 UTC) #1
pavely
Here is initial feedback. I looked at header and implementation. I'll review unittests in the ...
6 years, 6 months ago (2014-06-03 17:38:54 UTC) #2
maniscalco
Thanks for the feedback. I've addressed it in patch set #2. PTAL! https://codereview.chromium.org/304253010/diff/30005/sync/internal_api/attachments/attachment_uploader_impl.cc File sync/internal_api/attachments/attachment_uploader_impl.cc ...
6 years, 6 months ago (2014-06-04 00:20:50 UTC) #3
pavely
lgtm with small comment. https://codereview.chromium.org/304253010/diff/60001/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc File sync/internal_api/attachments/attachment_uploader_impl_unittest.cc (right): https://codereview.chromium.org/304253010/diff/60001/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc#newcode405 sync/internal_api/attachments/attachment_uploader_impl_unittest.cc:405: std::string expected_header(kAuthorization); expected_header is not ...
6 years, 6 months ago (2014-06-04 23:34:39 UTC) #4
maniscalco
https://codereview.chromium.org/304253010/diff/60001/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc File sync/internal_api/attachments/attachment_uploader_impl_unittest.cc (right): https://codereview.chromium.org/304253010/diff/60001/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc#newcode405 sync/internal_api/attachments/attachment_uploader_impl_unittest.cc:405: std::string expected_header(kAuthorization); Removed! On 2014/06/04 23:34:39, pavely wrote: > ...
6 years, 6 months ago (2014-06-05 00:12:12 UTC) #5
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 6 months ago (2014-06-05 21:15:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/304253010/120001
6 years, 6 months ago (2014-06-05 21:16:48 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 01:29:12 UTC) #8
Message was sent while issue was closed.
Change committed as 275293

Powered by Google App Engine
This is Rietveld 408576698