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

Issue 10693068: Refactor Android's NetworckChangeNotifier. (Closed)

Created:
8 years, 5 months ago by benm (inactive)
Modified:
8 years, 5 months ago
Reviewers:
joth, Yaron, Ryan Sleevi, Satish
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Refactor Android's NetworckChangeNotifier. The current implementation of NetworkChangeNotifier on Android assumes that the embedder has the Android ACCESS_NETWORK_STATE platform permission, and will crash if it does not. This change refactors the implementation such that the embedder pushes state changes into the NetworkChangeNotfier, and makes the NetworkChangeNotifier a singleton. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146100

Patch Set 1 #

Total comments: 1

Patch Set 2 : Keep auto detect logic, but default to simple behavior. #

Total comments: 4

Patch Set 3 : Tidy up android's is-tablet functionality #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -19 lines) Patch
M chrome/browser/android/chrome_startup_flags.cc View 1 2 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/common/CommandLine.java View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M sync/util/session_utils_android.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M sync/util/session_utils_android.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
benm (inactive)
Hi guys, A refactoring of the Android NetworkChangeNotifier that means Android platform permissions are not ...
8 years, 5 months ago (2012-07-02 15:19:48 UTC) #1
benm (inactive)
+joth
8 years, 5 months ago (2012-07-02 15:21:41 UTC) #2
Ryan Sleevi
We've been trying to remove as many singletons as possible in the network stack, and ...
8 years, 5 months ago (2012-07-02 16:12:20 UTC) #3
benm (inactive)
Thanks for taking a look Ryan. I've refactored the refactoring. This time, we keep the ...
8 years, 5 months ago (2012-07-10 14:36:40 UTC) #4
Ryan Sleevi
Is there anything for me to review here? Looks like it's all java/jni-side (I assume ...
8 years, 5 months ago (2012-07-10 14:53:12 UTC) #5
joth
lgtm with a couple small questions http://codereview.chromium.org/10693068/diff/8001/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java File net/android/java/src/org/chromium/net/NetworkChangeNotifier.java (right): http://codereview.chromium.org/10693068/diff/8001/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java#newcode47 net/android/java/src/org/chromium/net/NetworkChangeNotifier.java:47: public static void ...
8 years, 5 months ago (2012-07-10 17:24:53 UTC) #6
benm (inactive)
Thanks joth! http://codereview.chromium.org/10693068/diff/8001/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java File net/android/java/src/org/chromium/net/NetworkChangeNotifier.java (right): http://codereview.chromium.org/10693068/diff/8001/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java#newcode47 net/android/java/src/org/chromium/net/NetworkChangeNotifier.java:47: public static void setAutoDetectConnectivityState(boolean shouldAutoDetect) { On ...
8 years, 5 months ago (2012-07-10 17:28:57 UTC) #7
benm (inactive)
+satish for OWNERS
8 years, 5 months ago (2012-07-10 17:31:34 UTC) #8
Satish
lgtm
8 years, 5 months ago (2012-07-10 23:40:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/10693068/8001
8 years, 5 months ago (2012-07-11 09:37:57 UTC) #10
commit-bot: I haz the power
Change committed as 146100
8 years, 5 months ago (2012-07-11 10:48:39 UTC) #11
benm (inactive)
8 years, 5 months ago (2012-07-20 15:41:14 UTC) #12
*sigh* please ignore patch set 3 :)

Powered by Google App Engine
This is Rietveld 408576698