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

Issue 2768573002: Send traffic-management headers from extension updater. (Closed)

Created:
3 years, 9 months ago by Minh X. Nguyen
Modified:
3 years, 8 months ago
CC:
blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, droger+watchlist_chromium.org, extensions-reviews_chromium.org, mevissen, sdefresne+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Send traffic-management headers from extension updater. This change will allow Omaha to mitigate DoS and prioritize traffic better. BUG=647516 Review-Url: https://codereview.chromium.org/2768573002 Cr-Commit-Position: refs/heads/master@{#461466} Committed: https://chromium.googlesource.com/chromium/src/+/b764761949ea8376c93fb682ca51a29852e6f39f

Patch Set 1 #

Patch Set 2 : Fix dependency error. #

Patch Set 3 : Fix a compiler error in ChromeOS. #

Total comments: 4

Patch Set 4 : Change the comment for the new constant values. #

Patch Set 5 : Rename on_demand_update to foreground_check. #

Total comments: 12

Patch Set 6 : Address Devlin's concerns in the review. #

Patch Set 7 : Fix compile error in chromeos extension. #

Patch Set 8 : Fix the compile error on chromeos external_cache.cc (again). #

Total comments: 2

Patch Set 9 : Change id_vector from std::vector<std::string> to std::vector<base::StringPiece>. #

Total comments: 4

Patch Set 10 : Change the code according to mek's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -86 lines) Patch
M chrome/browser/chromeos/extensions/external_cache.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.h View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 3 4 5 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 3 4 5 18 chunks +169 lines, -29 lines 0 comments Download
M components/update_client/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/update_client/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/update_client/update_query_params.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/update_client/update_query_params.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M components/update_client/update_query_params_unittest.cc View 2 chunks +9 lines, -1 line 0 comments Download
M extensions/browser/updater/extension_downloader.h View 1 2 3 4 5 5 chunks +26 lines, -6 lines 0 comments Download
M extensions/browser/updater/extension_downloader.cc View 1 2 3 4 5 6 7 8 9 12 chunks +73 lines, -35 lines 0 comments Download
M extensions/browser/updater/manifest_fetch_data.h View 1 2 3 4 5 3 chunks +21 lines, -3 lines 0 comments Download
M extensions/browser/updater/manifest_fetch_data.cc View 1 2 3 4 5 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 80 (60 generated)
Minh X. Nguyen
3 years, 9 months ago (2017-03-21 20:50:59 UTC) #13
Sorin Jianu
lgtm -cpu@ update_client looks good, thank you! https://codereview.chromium.org/2768573002/diff/40001/extensions/browser/updater/extension_downloader.h File extensions/browser/updater/extension_downloader.h (right): https://codereview.chromium.org/2768573002/diff/40001/extensions/browser/updater/extension_downloader.h#newcode144 extensions/browser/updater/extension_downloader.h:144: // Constans ...
3 years, 9 months ago (2017-03-21 21:12:10 UTC) #17
Sorin Jianu
lgtm -cpu@ update_client looks good, thank you!
3 years, 9 months ago (2017-03-21 21:12:14 UTC) #18
waffles
update_client lgtm https://codereview.chromium.org/2768573002/diff/40001/chrome/browser/extensions/updater/extension_updater.h File chrome/browser/extensions/updater/extension_updater.h (right): https://codereview.chromium.org/2768573002/diff/40001/chrome/browser/extensions/updater/extension_updater.h#newcode75 chrome/browser/extensions/updater/extension_updater.h:75: bool on_demand_update; I recommend standardizing on "foreground" ...
3 years, 9 months ago (2017-03-21 21:42:02 UTC) #19
Minh X. Nguyen
https://codereview.chromium.org/2768573002/diff/40001/extensions/browser/updater/extension_downloader.h File extensions/browser/updater/extension_downloader.h (right): https://codereview.chromium.org/2768573002/diff/40001/extensions/browser/updater/extension_downloader.h#newcode144 extensions/browser/updater/extension_downloader.h:144: // Constans for foreground/background update requests in the header. ...
3 years, 9 months ago (2017-03-21 21:42:34 UTC) #20
Minh X. Nguyen
3 years, 9 months ago (2017-03-21 21:42:35 UTC) #21
Minh X. Nguyen
https://codereview.chromium.org/2768573002/diff/40001/chrome/browser/extensions/updater/extension_updater.h File chrome/browser/extensions/updater/extension_updater.h (right): https://codereview.chromium.org/2768573002/diff/40001/chrome/browser/extensions/updater/extension_updater.h#newcode75 chrome/browser/extensions/updater/extension_updater.h:75: bool on_demand_update; On 2017/03/21 21:42:01, waffles wrote: > I ...
3 years, 9 months ago (2017-03-21 22:17:05 UTC) #26
Minh X. Nguyen
3 years, 9 months ago (2017-03-23 18:13:54 UTC) #32
Devlin
Can we also expand the CL description a bit to include a little of the ...
3 years, 9 months ago (2017-03-24 15:14:47 UTC) #33
Minh X. Nguyen
https://codereview.chromium.org/2768573002/diff/80001/chrome/browser/extensions/updater/extension_updater_unittest.cc File chrome/browser/extensions/updater/extension_updater_unittest.cc (right): https://codereview.chromium.org/2768573002/diff/80001/chrome/browser/extensions/updater/extension_updater_unittest.cc#newcode851 chrome/browser/extensions/updater/extension_updater_unittest.cc:851: EXPECT_EQ(foreground_check ? "fg" : "bg", interactivity_value); On 2017/03/24 15:14:46, ...
3 years, 8 months ago (2017-03-27 23:05:29 UTC) #37
jochen (gone - plz use gerrit)
deferring to rdevlin.cronin@
3 years, 8 months ago (2017-03-28 10:34:39 UTC) #49
Devlin
extensions lgtm https://codereview.chromium.org/2768573002/diff/140001/extensions/browser/updater/extension_downloader.cc File extensions/browser/updater/extension_downloader.cc (right): https://codereview.chromium.org/2768573002/diff/140001/extensions/browser/updater/extension_downloader.cc#newcode474 extensions/browser/updater/extension_downloader.cc:474: std::vector<std::string> id_vector(active_request->extension_ids().begin(), nit: we can now use ...
3 years, 8 months ago (2017-03-28 22:48:54 UTC) #50
Minh X. Nguyen
https://codereview.chromium.org/2768573002/diff/140001/extensions/browser/updater/extension_downloader.cc File extensions/browser/updater/extension_downloader.cc (right): https://codereview.chromium.org/2768573002/diff/140001/extensions/browser/updater/extension_downloader.cc#newcode474 extensions/browser/updater/extension_downloader.cc:474: std::vector<std::string> id_vector(active_request->extension_ids().begin(), On 2017/03/28 22:48:54, Devlin wrote: > nit: ...
3 years, 8 months ago (2017-03-29 23:38:32 UTC) #52
Marijn Kruisselbrink
lgtm hmm, it seems I forgot to actually publish the comments I had last week... ...
3 years, 8 months ago (2017-03-30 21:50:45 UTC) #61
Minh X. Nguyen
https://codereview.chromium.org/2768573002/diff/160001/extensions/browser/updater/extension_downloader.cc File extensions/browser/updater/extension_downloader.cc (right): https://codereview.chromium.org/2768573002/diff/160001/extensions/browser/updater/extension_downloader.cc#newcode478 extensions/browser/updater/extension_downloader.cc:478: if (VLOG_IS_ON(2)) { On 2017/03/30 21:50:45, Marijn Kruisselbrink wrote: ...
3 years, 8 months ago (2017-03-30 22:20:56 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2768573002/180001
3 years, 8 months ago (2017-03-31 17:40:04 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/400056)
3 years, 8 months ago (2017-03-31 17:50:39 UTC) #71
jochen (gone - plz use gerrit)
lgtm
3 years, 8 months ago (2017-04-03 15:26:54 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2768573002/180001
3 years, 8 months ago (2017-04-03 16:07:19 UTC) #77
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 17:55:13 UTC) #80
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/b764761949ea8376c93fb682ca51...

Powered by Google App Engine
This is Rietveld 408576698