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

Issue 2364703002: Add network throttling as an enterprise policy (Closed)

Created:
4 years, 3 months ago by kirtika
Modified:
3 years, 9 months ago
CC:
sduraisamy, Kevin Cernekee, Sameer Nanda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for an enterprise policy that lets the admin turn on network throttling, and specify the upload and download rates in kbps to throttle to. BUG=642811 TEST=(1) Unit-tests (2) Added network throttling policy to YAPS server, enabled throttling with various values, disabled, and checked that changes propagate to client device. Signed-off-by: Kirtika Ruchandani <kirtika@google.com>; Committed: https://crrev.com/7db3c2b899d448dc0235e03a248df83aa5778ebf Cr-Commit-Position: refs/heads/master@{#428565}

Patch Set 1 #

Patch Set 2 : Work-in-progress: Testing policy addition #

Patch Set 3 : Add network throttling as an enterprise policy #

Patch Set 4 : Add network bandwidth throttling as an enterprise policy #

Total comments: 1

Patch Set 5 : Add network bandwidth throttling as an enterprise policy #

Patch Set 6 : Add network bandwidth throttling as an enterprise policy #

Patch Set 7 : Add network bandwidth throttling as an enterprise policy #

Total comments: 43

Patch Set 8 : Add network bandwidth throttling as an enterprise policy #

Total comments: 18

Patch Set 9 : Add network bandwidth throttling as an enterprise policy #

Patch Set 10 : Add network bandwidth throttling as an enterprise policy #

Total comments: 4

Patch Set 11 : Add network bandwidth throttling as an enterprise policy #

Patch Set 12 : Add network bandwidth throttling as an enterprise policy #

Total comments: 8

Patch Set 13 : Add network bandwidth throttling as an enterprise policy #

Patch Set 14 : Add network bandwidth throttling as an enterprise policy #

Total comments: 1

Patch Set 15 : Add network bandwidth throttling as an enterprise policy #

Total comments: 11

Patch Set 16 : Add network bandwidth throttling as an enterprise policy #

Patch Set 17 : Add network bandwidth throttling as an enterprise policy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M chrome/browser/chromeos/net/network_throttling_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/net/network_throttling_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 119 (65 generated)
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/2364703002/40001
4 years, 2 months ago (2016-10-06 10:12:54 UTC) #7
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 2 months ago (2016-10-06 10:12:56 UTC) #9
stevenjb
On 2016/10/06 at 10:12:56, commit-bot wrote: > No L-G-T-M from a valid reviewer yet. > ...
4 years, 2 months ago (2016-10-13 17:03:10 UTC) #15
kirtika1
> 1) We should add NetworkStateHandler::SetThrottling(...), similarly to > NetworkStateHandler::SetWakeOnLanEnabled(). This will remove any Shill ...
4 years, 2 months ago (2016-10-19 08:51:30 UTC) #16
Mattias Nissler (ping if slow)
https://codereview.chromium.org/2364703002/diff/60001/chrome/browser/chromeos/preferences.cc File chrome/browser/chromeos/preferences.cc (right): https://codereview.chromium.org/2364703002/diff/60001/chrome/browser/chromeos/preferences.cc#newcode635 chrome/browser/chromeos/preferences.cc:635: if (reason == REASON_INITIALIZATION || If you want this ...
4 years, 2 months ago (2016-10-20 07:28:40 UTC) #18
Andrew T Wilson (Slow)
Why is .chroot_lock part of this CL? Also, the NetworkThrottlingObserver is kind of a meaningless ...
4 years, 2 months ago (2016-10-21 13:27:31 UTC) #27
Andrew T Wilson (Slow)
Why is .chroot_lock part of this CL? Also, the NetworkThrottlingObserver is kind of a meaningless ...
4 years, 2 months ago (2016-10-21 13:27:31 UTC) #28
stevenjb
Thanks for putting this into NetworkStateHandler. My primary question now is whether the Shill call ...
4 years, 2 months ago (2016-10-21 19:41:21 UTC) #29
kirtika1
> Thanks for putting this into NetworkStateHandler. My primary question now is > whether the ...
4 years, 2 months ago (2016-10-21 20:08:14 UTC) #30
kirtika1
> Thanks for putting this into NetworkStateHandler. My primary question now is > whether the ...
4 years, 2 months ago (2016-10-21 20:08:18 UTC) #31
stevenjb
On 2016/10/21 20:08:18, kirtika1 wrote: > > Thanks for putting this into NetworkStateHandler. My primary ...
4 years, 2 months ago (2016-10-21 20:20:59 UTC) #32
stevenjb
https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode39 chrome/browser/chromeos/net/network_throttling_observer.cc:39: // borrowed from wake_on_wifi_manager - check if it is ...
4 years, 2 months ago (2016-10-21 20:24:00 UTC) #33
stevenjb
https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/net/network_throttling_observer.h File chrome/browser/chromeos/net/network_throttling_observer.h (right): https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/net/network_throttling_observer.h#newcode25 chrome/browser/chromeos/net/network_throttling_observer.h:25: class NetworkThrottlingObserver { On 2016/10/21 19:41:20, stevenjb wrote: > ...
4 years, 2 months ago (2016-10-21 20:25:54 UTC) #34
kirtika1
https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2364703002/diff/120001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode414 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:414: network_throttling_observer_.reset(new NetworkThrottlingObserver()); On 2016/10/21 13:27:30, Andrew T Wilson (Slow) ...
4 years, 2 months ago (2016-10-23 00:04:50 UTC) #35
stevenjb
Much better, thanks. We need a test for this also. You can do this using ...
4 years, 1 month ago (2016-10-24 17:14:17 UTC) #36
kirtika1
I've made the corrections stevenjb@ suggested, and added unit-tests for network throttling observer and shill ...
4 years, 1 month ago (2016-10-27 18:15:43 UTC) #37
stevenjb
Nice test, thanks for adding it. LGTM! https://codereview.chromium.org/2364703002/diff/180001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/180001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode14 chrome/browser/chromeos/net/network_throttling_observer.cc:14: #include "chrome/browser/browser_process.h" ...
4 years, 1 month ago (2016-10-27 22:54:38 UTC) #39
kirtika1
lgtm https://codereview.chromium.org/2364703002/diff/180001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/180001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode14 chrome/browser/chromeos/net/network_throttling_observer.cc:14: #include "chrome/browser/browser_process.h" On 2016/10/27 22:54:38, stevenjb wrote: > ...
4 years, 1 month ago (2016-10-27 23:04:11 UTC) #44
kirtika1
4 years, 1 month ago (2016-10-27 23:04:23 UTC) #45
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/2364703002/200001
4 years, 1 month ago (2016-10-27 23:04:25 UTC) #46
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/2364703002/200001
4 years, 1 month ago (2016-10-27 23:06:06 UTC) #48
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/291542)
4 years, 1 month ago (2016-10-27 23:16:00 UTC) #50
kirtika1
On 2016/10/27 23:16:00, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-10-27 23:37:44 UTC) #52
kirtika1
On 2016/10/27 23:16:00, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-10-27 23:37:48 UTC) #53
Andrew T Wilson (Slow)
On 2016/10/27 23:37:48, kirtika1 wrote: > > Added gab@ for help with prefs. > atwilson@ ...
4 years, 1 month ago (2016-10-28 08:15:46 UTC) #54
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/2364703002/220001
4 years, 1 month ago (2016-10-28 13:51:28 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/295611) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-10-28 13:54:10 UTC) #59
gab
c/b/prefs rs lgtm
4 years, 1 month ago (2016-10-28 13:55:50 UTC) #60
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/2364703002/240001
4 years, 1 month ago (2016-10-28 14:16:27 UTC) #63
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/291996)
4 years, 1 month ago (2016-10-28 14:25:30 UTC) #65
Andrew T Wilson (Slow)
Mostly LG, had a few questions about behavior when policy is removed. https://codereview.chromium.org/2364703002/diff/220001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc ...
4 years, 1 month ago (2016-10-28 14:31:54 UTC) #68
stevenjb
https://codereview.chromium.org/2364703002/diff/220001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/220001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode28 chrome/browser/chromeos/net/network_throttling_observer.cc:28: weak_ptr_factory_.GetWeakPtr()); On 2016/10/28 14:31:54, Andrew T Wilson (Slow) wrote: ...
4 years, 1 month ago (2016-10-28 16:27:09 UTC) #71
kirtika1
Added more owners for help with LGTM. PTAL. - brettw@ - for chrome/browser/policy/configuration_policy_handler_list_factory.cc - isherman@ ...
4 years, 1 month ago (2016-10-28 20:07:50 UTC) #78
Ilya Sherman
histograms.xml lgtm
4 years, 1 month ago (2016-10-28 20:09:04 UTC) #79
Andrew T Wilson (Slow)
LGTM with one style nit https://codereview.chromium.org/2364703002/diff/260001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/260001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode54 chrome/browser/chromeos/net/network_throttling_observer.cc:54: if (throttling_policy->GetInteger("upload_rate_kbits", &upload_rate_read) && ...
4 years, 1 month ago (2016-10-28 20:36:01 UTC) #82
Andrew T Wilson (Slow)
LGTM with one style nit https://codereview.chromium.org/2364703002/diff/260001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/260001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode54 chrome/browser/chromeos/net/network_throttling_observer.cc:54: if (throttling_policy->GetInteger("upload_rate_kbits", &upload_rate_read) && ...
4 years, 1 month ago (2016-10-28 20:36:01 UTC) #83
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/2364703002/280001
4 years, 1 month ago (2016-10-28 21:19:23 UTC) #86
brettw
All I looked at was configuration_policy_handler_list_factory.cc. That LGTM.
4 years, 1 month ago (2016-10-28 22:48:13 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/321588)
4 years, 1 month ago (2016-10-28 23:09:10 UTC) #89
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/2364703002/280001
4 years, 1 month ago (2016-10-28 23:43:58 UTC) #91
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 1 month ago (2016-10-29 00:43:15 UTC) #93
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/7db3c2b899d448dc0235e03a248df83aa5778ebf Cr-Commit-Position: refs/heads/master@{#428565}
4 years, 1 month ago (2016-10-29 00:52:43 UTC) #95
Lei Zhang
There is a persistent red bot on the waterfall that lead me here. I commented ...
4 years, 1 month ago (2016-10-29 16:04:05 UTC) #97
kirtika1
https://codereview.chromium.org/2364703002/diff/280001/chrome/browser/chromeos/net/network_throttling_observer.cc File chrome/browser/chromeos/net/network_throttling_observer.cc (right): https://codereview.chromium.org/2364703002/diff/280001/chrome/browser/chromeos/net/network_throttling_observer.cc#newcode48 chrome/browser/chromeos/net/network_throttling_observer.cc:48: uint32_t upload_rate = 0, download_rate = 0; On 2016/10/29 ...
4 years, 1 month ago (2016-10-29 21:26:38 UTC) #98
kirtika1
4 years, 1 month ago (2016-10-29 21:26:41 UTC) #99
kirtika1
On 2016/10/29 16:04:05, Lei Zhang wrote: > There is a persistent red bot on the ...
4 years, 1 month ago (2016-10-29 22:12:08 UTC) #109
Lei Zhang
This CL has already landed. You should start a new CL instead of continuing on ...
4 years, 1 month ago (2016-10-30 04:01:50 UTC) #112
kirtika1
On 2016/10/30 04:01:50, Lei Zhang wrote: > This CL has already landed. You should start ...
4 years, 1 month ago (2016-10-31 04:39:10 UTC) #113
phoglund_chromium
On 2016/10/31 04:39:10, kirtika1 wrote: > On 2016/10/30 04:01:50, Lei Zhang wrote: > > This ...
4 years, 1 month ago (2016-10-31 09:23:41 UTC) #114
phoglund_chromium
On 2016/10/31 09:23:41, phoglund_chrome wrote: > On 2016/10/31 04:39:10, kirtika1 wrote: > > On 2016/10/30 ...
4 years, 1 month ago (2016-10-31 09:26:00 UTC) #115
phoglund_chromium
On 2016/10/31 09:26:00, phoglund_chrome wrote: > On 2016/10/31 09:23:41, phoglund_chrome wrote: > > On 2016/10/31 ...
4 years, 1 month ago (2016-10-31 12:40:44 UTC) #116
phoglund_chromium
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.chromium.org/2463023002/ by phoglund@chromium.org. ...
4 years, 1 month ago (2016-10-31 12:48:46 UTC) #117
tommycli
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.chromium.org/2461383002/ by tommycli@chromium.org. ...
4 years, 1 month ago (2016-10-31 15:20:05 UTC) #118
kirtika
3 years, 9 months ago (2017-03-02 03:12:01 UTC) #119
Message was sent while issue was closed.
On 2016/10/31 15:20:05, tommycli wrote:
> A revert of this CL (patchset #17 id:320001) has been created in
> https://codereview.chromium.org/2461383002/ by mailto:tommycli@chromium.org.
> 
> The reason for reverting is: Reverting because this broke CrOS ASan bots:
> 
> First breaking build:
> 
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2...
> 
> Thanks!.

Re-landed here: https://codereview.chromium.org/2466693002

Powered by Google App Engine
This is Rietveld 408576698