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 10554013: Add a CONNECT_REQUESTED state to Network ConnectionState. (Closed)

Created:
8 years, 6 months ago by stevenjb
Modified:
8 years, 6 months ago
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
http://git.chromium.org/git/chromium/src@master
Visibility:
Public.

Description

Add a CONNECT_REQUESTED state to Network ConnectionState. When a connection request is made, Chrome now sets the state to CONNECT_REQUESTED and ignores "Idle" state updates while in that state. This informs the UI to show "connecting" icons / text until the connection attempt succeeds or fails. Also: Don't update the network icon while scanning. Also: includes a bunch of logging changes for improved debugging. BUG=125121 TEST=See issue, test connecting between networks, UI should behave correctly. For chrome/browser/chromeos/gdata: TBR=tbarzic@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142847

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 5

Patch Set 3 : Address feedback #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -81 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_network_functions.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/network_constants.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 2 3 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 5 chunks +43 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_cros.cc View 7 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_stub.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/network_parser.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_sync_client_unittest.cc View 1 2 3 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_icon.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_icon_unittest.cc View 10 chunks +21 lines, -16 lines 0 comments Download
M dbus/object_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
stevenjb
hasimoto@: please look at the change to object_proxy.cc
8 years, 6 months ago (2012-06-15 21:36:25 UTC) #1
hashimoto
http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc File dbus/object_proxy.cc (right): http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc#newcode495 dbus/object_proxy.cc:495: LOG(ERROR) << "Failed to call method: " How about ...
8 years, 6 months ago (2012-06-18 02:05:10 UTC) #2
stevenjb
On 2012/06/18 02:05:10, hashimoto wrote: > http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc > File dbus/object_proxy.cc (right): > > http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc#newcode495 > ...
8 years, 6 months ago (2012-06-18 16:52:00 UTC) #3
Greg Spencer (Chromium)
http://codereview.chromium.org/10554013/diff/4001/chrome/browser/chromeos/cros/network_constants.h File chrome/browser/chromeos/cros/network_constants.h (right): http://codereview.chromium.org/10554013/diff/4001/chrome/browser/chromeos/cros/network_constants.h#newcode230 chrome/browser/chromeos/cros/network_constants.h:230: STATE_CONNECT_REQUESTED = 11, // Chrome only state Do you ...
8 years, 6 months ago (2012-06-18 17:02:38 UTC) #4
stevenjb (google-dont-use)
PTAL http://codereview.chromium.org/10554013/diff/4001/chrome/browser/chromeos/cros/network_constants.h File chrome/browser/chromeos/cros/network_constants.h (right): http://codereview.chromium.org/10554013/diff/4001/chrome/browser/chromeos/cros/network_constants.h#newcode230 chrome/browser/chromeos/cros/network_constants.h:230: STATE_CONNECT_REQUESTED = 11, // Chrome only state On ...
8 years, 6 months ago (2012-06-18 17:35:31 UTC) #5
Greg Spencer (Chromium)
lgtm
8 years, 6 months ago (2012-06-18 17:59:13 UTC) #6
hashimoto
8 years, 6 months ago (2012-06-18 18:13:41 UTC) #7
On 2012/06/18 16:52:00, stevenjb (chromium) wrote:
> On 2012/06/18 02:05:10, hashimoto wrote:
> > http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc
> > File dbus/object_proxy.cc (right):
> > 
> >
>
http://codereview.chromium.org/10554013/diff/4001/dbus/object_proxy.cc#newcod...
> > dbus/object_proxy.cc:495: LOG(ERROR) << "Failed to call method: "
> > How about also printing service_name and ordering values like dbus_send(1)?
> > It'll be like the following.
> > 
> >   LOG(ERROR) << "Failed to call method: "
> >              << service_name_ << " " << object_path_.value() << " "
> >              << interface_name << "." << method_name
> >              << ": " << error_name << ": " << error_message;
> 
> Maybe in a follow-up? I just added object_path since it was very helpful for
> tracking down the source of the log spam.

ok, lgtm for object_proxy.cc

Powered by Google App Engine
This is Rietveld 408576698