|
[Re-land] Add network throttling as enterprise policy
This is a re-land of codereview.chromium.org/2364703002/
which was reverted in https://codereview.chromium.org/2461383002/
due to a memory leak in network_throttling_observer_unittest causing
the long-running linux-chromeos ASAN bot to fail.
All files stay the same except for the policy enum advancing to 351 from 350 (350 was taken while this CL was reverted) and memory leak fixes to network_throttling_observer_unittest.cc
Add support for an enterprise policy that lets the admin
turn on network throtttling and specify the upload/download
rates in kbps to throttle to.
BUG= 642811
TBR=atwilson@chromium.org,brettw@chromium.org,stevenjb@chromium.org
TEST=(1) unit-tests (2) Added network policy to YAPS
server, enabled throttling with various values, disabled
throttling and checked that the values propagate to client
Committed: https://crrev.com/857eeac9ace6b79bd8b99fceac315455ee82f617
Cr-Commit-Position: refs/heads/master@{#430082}
Total comments: 9
Total comments: 4
Total comments: 1
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+425 lines, -2 lines) |
Patch |
 |
M |
chrome/browser/chromeos/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/chrome_browser_main_chromeos.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
|
View
|
1
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/net/network_throttling_observer.h
|
View
|
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/net/network_throttling_observer.cc
|
View
|
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/net/network_throttling_observer_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+87 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/configuration_policy_handler_list_factory.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/browser_prefs.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/test/data/policy/policy_test_cases.json
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/fake_shill_manager_client.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/fake_shill_manager_client.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/mock_shill_manager_client.h
|
View
|
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/dbus/shill_manager_client.h
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/shill_manager_client.cc
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/shill_manager_client_unittest.cc
|
View
|
|
2 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/network_state_handler.h
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/network_state_handler.cc
|
View
|
1
2
3
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/shill_property_handler.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/shill_property_handler.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/policy/resources/policy_templates.json
|
View
|
1
|
2 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 44 (23 generated)
|