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

Issue 2466693002: [Re-land] Add network throttling as enterprise policy (Closed)

Created:
4 years, 1 month ago by kirtika
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org, tnagel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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}

Patch Set 1 #

Total comments: 9

Patch Set 2 : [Draft only] Investigating memory leak issue in NetworkThrottlingObserverTest #

Total comments: 4

Patch Set 3 : [Re-land] Add network throttling as enterprise policy #

Total comments: 1

Patch Set 4 : [Re-land] Add network throttling as enterprise policy #

Total comments: 1

Patch Set 5 : [Re-land] Add network throttling as enterprise policy #

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

Messages

Total messages: 44 (23 generated)
Lei Zhang
https://codereview.chromium.org/2466693002/diff/1/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc File chrome/browser/chromeos/net/network_throttling_observer_unittest.cc (right): https://codereview.chromium.org/2466693002/diff/1/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc#newcode1 chrome/browser/chromeos/net/network_throttling_observer_unittest.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 1 month ago (2016-11-03 19:38:39 UTC) #6
kirtika1
https://codereview.chromium.org/2466693002/diff/1/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc File chrome/browser/chromeos/net/network_throttling_observer_unittest.cc (right): https://codereview.chromium.org/2466693002/diff/1/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc#newcode1 chrome/browser/chromeos/net/network_throttling_observer_unittest.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 1 month ago (2016-11-04 00:27:33 UTC) #8
Lei Zhang
https://codereview.chromium.org/2466693002/diff/20001/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc File chrome/browser/chromeos/net/network_throttling_observer_unittest.cc (right): https://codereview.chromium.org/2466693002/diff/20001/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc#newcode37 chrome/browser/chromeos/net/network_throttling_observer_unittest.cc:37: local_state_.reset(new TestingPrefServiceSimple()); Prefer: local_state_ = base::MakeUnique<TestingPrefServiceSimple>(); https://codereview.chromium.org/2466693002/diff/20001/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc#newcode38 chrome/browser/chromeos/net/network_throttling_observer_unittest.cc:38: local_state_.get()->registry()->RegisterDictionaryPref( ...
4 years, 1 month ago (2016-11-04 00:44:19 UTC) #10
Lei Zhang
I think patch set 2 should not leak. Please remember to fix up the CL ...
4 years, 1 month ago (2016-11-04 00:46:36 UTC) #11
kirtika1
On 2016/11/04 00:46:36, Lei Zhang wrote: > I think patch set 2 should not leak. ...
4 years, 1 month ago (2016-11-04 03:20:54 UTC) #17
kirtika1
On 2016/11/04 03:20:54, kirtika1 wrote: > On 2016/11/04 00:46:36, Lei Zhang wrote: > > I ...
4 years, 1 month ago (2016-11-04 03:28:06 UTC) #19
gab
c/b/prefs lgtm % comment https://codereview.chromium.org/2466693002/diff/40001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): https://codereview.chromium.org/2466693002/diff/40001/chrome/common/pref_names.h#newcode496 chrome/common/pref_names.h:496: extern const char kNetworkThrottlingEnabled[]; This ...
4 years, 1 month ago (2016-11-04 14:35:20 UTC) #22
Ilya Sherman
histograms.xml lgtm (and it's generally fine to TBR owners for relands, when the code they ...
4 years, 1 month ago (2016-11-04 18:37:40 UTC) #23
Lei Zhang
lgtm
4 years, 1 month ago (2016-11-04 21:17:20 UTC) #25
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/2466693002/60001
4 years, 1 month ago (2016-11-04 21:19:18 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/174833) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-04 22:06:03 UTC) #30
Lei Zhang
https://codereview.chromium.org/2466693002/diff/60001/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/2466693002/diff/60001/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode607 chrome/browser/policy/configuration_policy_handler_list_factory.cc:607: { key::kNetworkThrottlingEnabled, Also needs to be ifdef...
4 years, 1 month ago (2016-11-04 22:11:57 UTC) #31
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/2466693002/80001
4 years, 1 month ago (2016-11-04 22:21:48 UTC) #34
stevenjb
rs lgtm
4 years, 1 month ago (2016-11-04 22:36:45 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-05 00:24:59 UTC) #37
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/857eeac9ace6b79bd8b99fceac315455ee82f617 Cr-Commit-Position: refs/heads/master@{#430082}
4 years, 1 month ago (2016-11-05 00:27:56 UTC) #39
gab
https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (left): https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_names.cc#oldcode1851 chrome/common/pref_names.cc:1851: const char kReportArcStatusEnabled[] = "arc.status_reporting_enabled"; It should be here, ...
4 years, 1 month ago (2016-11-05 01:19:40 UTC) #40
gab
On 2016/11/05 01:19:40, gab wrote: > https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_names.cc > File chrome/common/pref_names.cc (left): > > https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_names.cc#oldcode1851 > ...
4 years, 1 month ago (2016-11-07 22:36:16 UTC) #41
Lei Zhang
On 2016/11/07 22:36:16, gab wrote: > On 2016/11/05 01:19:40, gab wrote: > > > https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_names.cc ...
4 years, 1 month ago (2016-11-09 21:39:44 UTC) #42
kirtika1
> > Did y'all resolve this in a separate CL? I've been OOO until yesterday, ...
4 years, 1 month ago (2016-11-09 21:47:00 UTC) #43
kirtika1
4 years, 1 month ago (2016-11-10 21:39:06 UTC) #44
Message was sent while issue was closed.
On 2016/11/07 22:36:16, gab wrote:
> On 2016/11/05 01:19:40, gab wrote:
> >
>
https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_name...
> > File chrome/common/pref_names.cc (left):
> > 
> >
>
https://codereview.chromium.org/2466693002/diff/80001/chrome/common/pref_name...
> > chrome/common/pref_names.cc:1851: const char kReportArcStatusEnabled[] =
> > "arc.status_reporting_enabled";
> > It should be here, to match header file re-use the existing ifdef.
> 
> ping

Added to
https://codereview.chromium.org/2492043002/

Powered by Google App Engine
This is Rietveld 408576698