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

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed)

Created:
6 years, 10 months ago by stevenjb
Modified:
6 years, 9 months ago
CC:
chromium-reviews, derat+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Ben Chan
Visibility:
Public.

Description

Replace misc. network and power stub flags with more flexible ones This replaces the following flags: --default-stub-network-state-idle --enable-stub-interactive (for Shill only) --enable-stub-portalled-wifi --enabled-stub-network-types With: --shill-stub={options} Specific option values are commented in the code. BUG=345033 R=pneubeck@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255422

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 10

Patch Set 4 : Elim. shill_stub_helper and move functions to clients. #

Total comments: 12

Patch Set 5 : Rebase off 183033004 #

Patch Set 6 : Elim PowerManagerClient changes #

Patch Set 7 : Move SetupDefaultEnvironment to FakeDBusThreadManager #

Total comments: 32

Patch Set 8 : Rebase #

Patch Set 9 : Address feedback #

Total comments: 7

Patch Set 10 : Elim dbus_command_line_helper, nits #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -354 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -4 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -18 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chromeos/dbus/fake_dbus_thread_manager.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_dbus_thread_manager.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +364 lines, -58 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +9 lines, -30 lines 0 comments Download
M chromeos/dbus/shill_manager_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
D chromeos/dbus/shill_stub_helper.h View 1 2 3 4 1 chunk +0 lines, -22 lines 0 comments Download
D chromeos/dbus/shill_stub_helper.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -202 lines 0 comments Download
M chromeos/dbus/sms_client.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M chromeos/network/shill_property_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
stevenjb
I've been wanting to clean this up for a while; since we're pruning command line ...
6 years, 10 months ago (2014-02-26 22:52:56 UTC) #1
Daniel Erat
lgtm for all the non-networking parts
6 years, 10 months ago (2014-02-27 03:32:47 UTC) #2
pneubeck (no reviews)
high level comments from a first fly over. https://codereview.chromium.org/181413006/diff/40001/chromeos/dbus/dbus_thread_manager.h File chromeos/dbus/dbus_thread_manager.h (right): https://codereview.chromium.org/181413006/diff/40001/chromeos/dbus/dbus_thread_manager.h#newcode156 chromeos/dbus/dbus_thread_manager.h:156: virtual ...
6 years, 9 months ago (2014-02-27 09:04:36 UTC) #3
stevenjb
https://codereview.chromium.org/181413006/diff/40001/chromeos/dbus/dbus_thread_manager.h File chromeos/dbus/dbus_thread_manager.h (right): https://codereview.chromium.org/181413006/diff/40001/chromeos/dbus/dbus_thread_manager.h#newcode156 chromeos/dbus/dbus_thread_manager.h:156: virtual int GetShillInteractiveDelay() const; On 2014/02/27 09:04:37, pneubeck wrote: ...
6 years, 9 months ago (2014-02-28 02:44:06 UTC) #4
pneubeck (no reviews)
Could you put the SharedProfilePath changes into a separate CL? That would it clearer I ...
6 years, 9 months ago (2014-02-28 09:37:58 UTC) #5
stevenjb
I'll go ahead and separate the the shared path cleanup. We're trying to emulate a ...
6 years, 9 months ago (2014-02-28 17:42:20 UTC) #6
stevenjb
https://codereview.chromium.org/181413006/diff/60001/chrome/browser/chromeos/login/user_image_loader.cc File chrome/browser/chromeos/login/user_image_loader.cc (right): https://codereview.chromium.org/181413006/diff/60001/chrome/browser/chromeos/login/user_image_loader.cc#newcode71 chrome/browser/chromeos/login/user_image_loader.cc:71: if (!success) return; On 2014/02/28 09:37:59, pneubeck wrote: > ...
6 years, 9 months ago (2014-02-28 17:43:05 UTC) #7
stevenjb
PTAL (I moved the PowerManagerClient changes into a separate CL that I will put up ...
6 years, 9 months ago (2014-02-28 20:26:16 UTC) #8
pneubeck (no reviews)
Sorry for the long list of comments. But I think this could/should be simplified. https://codereview.chromium.org/181413006/diff/120001/chromeos/dbus/dbus_command_line_helper.cc ...
6 years, 9 months ago (2014-03-03 20:36:19 UTC) #9
stevenjb
ptal https://codereview.chromium.org/181413006/diff/120001/chromeos/dbus/dbus_command_line_helper.cc File chromeos/dbus/dbus_command_line_helper.cc (right): https://codereview.chromium.org/181413006/diff/120001/chromeos/dbus/dbus_command_line_helper.cc#newcode21 chromeos/dbus/dbus_command_line_helper.cc:21: arg0->clear(); On 2014/03/03 20:36:19, pneubeck wrote: > just ...
6 years, 9 months ago (2014-03-05 01:03:49 UTC) #10
pneubeck (no reviews)
I agree that json is too unwieldy to meet your intent. Looking at the implementation ...
6 years, 9 months ago (2014-03-05 18:47:09 UTC) #11
stevenjb
So, the annoying difference with SplitStringIntoKeyValuePairs is that --shill-stub=wifi,cellular won't work, it requires an '='. ...
6 years, 9 months ago (2014-03-05 20:38:17 UTC) #12
pneubeck (no reviews)
lgtm
6 years, 9 months ago (2014-03-05 22:50:35 UTC) #13
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 9 months ago (2014-03-05 22:58:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/181413006/180001
6 years, 9 months ago (2014-03-05 22:59:38 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 22:59:45 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chromeos/dbus/fake_shill_manager_client.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-05 22:59:46 UTC) #17
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 9 months ago (2014-03-05 23:16:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/181413006/200001
6 years, 9 months ago (2014-03-05 23:17:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/181413006/200001
6 years, 9 months ago (2014-03-06 00:09:29 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 00:49:29 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 00:49:29 UTC) #22
stevenjb
6 years, 9 months ago (2014-03-06 20:50:57 UTC) #23
Message was sent while issue was closed.
Committed patchset #12 manually as r255422 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698