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

Issue 317933002: Use the provided connection type to determine if online. (Closed)

Created:
6 years, 6 months ago by jkarlin
Modified:
6 years, 6 months ago
Reviewers:
pauljensen, Tom Sepez, wtc, jam
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use the provided connection type to determine if online. Calling IsOffline() could race and return an answer for a different type. BUG=381282 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276050

Patch Set 1 #

Patch Set 2 : Simplify the IPC #

Total comments: 6

Patch Set 3 : Rename IPC message. Also fix render_view_host_implc race. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -13 lines) Patch
M content/browser/net/browser_online_state_observer.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jkarlin
Thanks!
6 years, 6 months ago (2014-06-05 19:29:06 UTC) #1
erikwright (departed)
It looks like wtc@ might be more appropriate. I'm only really an owner for cookie ...
6 years, 6 months ago (2014-06-05 19:37:50 UTC) #2
jkarlin
On 2014/06/05 19:37:50, erikwright wrote: > It looks like wtc@ might be more appropriate. I'm ...
6 years, 6 months ago (2014-06-06 16:38:43 UTC) #3
pauljensen
Why calculate is_online here? why not just pass the type (which implies online/offline-ness).
6 years, 6 months ago (2014-06-06 17:32:59 UTC) #4
jkarlin
On 2014/06/06 17:32:59, pauljensen wrote: > Why calculate is_online here? why not just pass the ...
6 years, 6 months ago (2014-06-06 18:02:48 UTC) #5
pauljensen
lgtm
6 years, 6 months ago (2014-06-06 18:29:55 UTC) #6
jkarlin
tsepez: Please review view_messages.h jochen: Please review all for OWNERS
6 years, 6 months ago (2014-06-06 18:52:08 UTC) #7
Tom Sepez
Messages LGTM. https://codereview.chromium.org/317933002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/317933002/diff/20001/content/renderer/render_thread_impl.cc#newcode1360 content/renderer/render_thread_impl.cc:1360: bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE; nit: ...
6 years, 6 months ago (2014-06-06 19:09:19 UTC) #8
wtc
Patch set 2 LGTM. https://codereview.chromium.org/317933002/diff/20001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/317933002/diff/20001/content/common/view_messages.h#newcode841 content/common/view_messages.h:841: IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, Nit: should this message ...
6 years, 6 months ago (2014-06-06 20:00:05 UTC) #9
jkarlin
Note, new file to review: render_view_host_impl.cc https://codereview.chromium.org/317933002/diff/20001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/317933002/diff/20001/content/common/view_messages.h#newcode841 content/common/view_messages.h:841: IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, On 2014/06/06 ...
6 years, 6 months ago (2014-06-09 11:25:44 UTC) #10
wtc
Patch set 3 LGTM.
6 years, 6 months ago (2014-06-09 17:11:46 UTC) #11
jkarlin
jam: PTAL for OWNERS of content/
6 years, 6 months ago (2014-06-09 17:30:48 UTC) #12
jam
lgtm
6 years, 6 months ago (2014-06-09 22:54:04 UTC) #13
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 6 months ago (2014-06-10 10:42:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/317933002/40001
6 years, 6 months ago (2014-06-10 10:42:36 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 16:12:25 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 16:27:30 UTC) #17
Message was sent while issue was closed.
Change committed as 276050

Powered by Google App Engine
This is Rietveld 408576698