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

Issue 10073024: Add NetworkChangeNotifier for Android. (Closed)

Created:
8 years, 8 months ago by Yaron
Modified:
8 years, 8 months ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, John Knottenbelt
Visibility:
Public.

Description

Add NetworkChangeNotifier for Android. The native notifier spawns a Java-side notifier that registers for notifications from Android's ConnectivityManager. As for the lack of tests, they're written at a higher-level downstream. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133142

Patch Set 1 #

Total comments: 39

Patch Set 2 : #

Total comments: 9

Patch Set 3 : add net/android/OWNERS, remove namespace #

Total comments: 2

Patch Set 4 : make register public #

Total comments: 4

Patch Set 5 : rebase on base chagnes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -2 lines) Patch
A base/android/java/org/chromium/base/ActivityStatus.java View 1 chunk +83 lines, -0 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 chunk +1 line, -0 lines 0 comments Download
A net/android/OWNERS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A net/android/java/net.xml View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A net/android/java/org/chromium/net/NetworkChangeNotifier.java View 1 2 1 chunk +129 lines, -0 lines 0 comments Download
A net/android/network_change_notifier.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A net/android/network_change_notifier.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A net/android/network_change_notifier_factory.h View 1 chunk +31 lines, -0 lines 0 comments Download
A net/android/network_change_notifier_factory.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 3 chunks +37 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Yaron
jrg: base/android net/android/java Note that I'll probably have to update the paths in the ant ...
8 years, 8 months ago (2012-04-13 22:13:59 UTC) #1
John Grabowski
Yes add OWNERS http://codereview.chromium.org/10073024/diff/1/net/android/java/java.gyp File net/android/java/java.gyp (right): http://codereview.chromium.org/10073024/diff/1/net/android/java/java.gyp#newcode22 net/android/java/java.gyp:22: '<(DEPTH)/net/android/java/dist/lib/chromium_net.jar', let's put output in a ...
8 years, 8 months ago (2012-04-13 22:37:30 UTC) #2
Ryan Sleevi
yaron: While not trying to slow down the upstreaming work, I'm still a youthfully idealistic ...
8 years, 8 months ago (2012-04-13 22:37:58 UTC) #3
Yaron
Re-based on top of other patch. We're still missing net.xml being auto-generated but Peter is ...
8 years, 8 months ago (2012-04-17 16:18:03 UTC) #4
Ryan Sleevi
"using" namespace bit seems like it should be fixed, but I realize it may need ...
8 years, 8 months ago (2012-04-17 17:56:06 UTC) #5
Yaron
http://codereview.chromium.org/10073024/diff/5001/net/android/java/net.xml File net/android/java/net.xml (right): http://codereview.chromium.org/10073024/diff/5001/net/android/java/net.xml#newcode44 net/android/java/net.xml:44: <path location="../../../base/android/java/dist/lib/chromium_base.jar"/> On 2012/04/17 17:56:06, Ryan Sleevi wrote: > ...
8 years, 8 months ago (2012-04-17 22:47:38 UTC) #6
Ryan Sleevi
http://codereview.chromium.org/10073024/diff/5001/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10073024/diff/5001/net/net.gyp#newcode1816 net/net.gyp:1816: 'java_in_dir': '../net/android/java', On 2012/04/17 22:47:38, Yaron wrote: > On ...
8 years, 8 months ago (2012-04-17 22:54:42 UTC) #7
Yaron
http://codereview.chromium.org/10073024/diff/5001/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10073024/diff/5001/net/net.gyp#newcode1816 net/net.gyp:1816: 'java_in_dir': '../net/android/java', On 2012/04/17 22:54:42, Ryan Sleevi wrote: > ...
8 years, 8 months ago (2012-04-17 22:55:59 UTC) #8
John Knottenbelt
http://codereview.chromium.org/10073024/diff/5001/net/android/java/org/chromium/net/NetworkChangeNotifier.java File net/android/java/org/chromium/net/NetworkChangeNotifier.java (right): http://codereview.chromium.org/10073024/diff/5001/net/android/java/org/chromium/net/NetworkChangeNotifier.java#newcode127 net/android/java/org/chromium/net/NetworkChangeNotifier.java:127: private native void nativeNotifyObservers(int nativeNetworkChangeNotifier); You can specify the ...
8 years, 8 months ago (2012-04-18 14:31:38 UTC) #9
Yaron
http://codereview.chromium.org/10073024/diff/5001/net/android/java/org/chromium/net/NetworkChangeNotifier.java File net/android/java/org/chromium/net/NetworkChangeNotifier.java (right): http://codereview.chromium.org/10073024/diff/5001/net/android/java/org/chromium/net/NetworkChangeNotifier.java#newcode127 net/android/java/org/chromium/net/NetworkChangeNotifier.java:127: private native void nativeNotifyObservers(int nativeNetworkChangeNotifier); On 2012/04/18 14:31:38, John ...
8 years, 8 months ago (2012-04-18 16:50:56 UTC) #10
John Grabowski
LGTM http://codereview.chromium.org/10073024/diff/14001/net/android/java/net.xml File net/android/java/net.xml (right): http://codereview.chromium.org/10073024/diff/14001/net/android/java/net.xml#newcode13 net/android/java/net.xml:13: <property name="out.dir" location="${PRODUCT_DIR}"/> Per discussions with tedchoc, we ...
8 years, 8 months ago (2012-04-19 22:35:41 UTC) #11
Yaron
Thanks John. rsleevi: final look? Ted or I will look into fixing the package issue ...
8 years, 8 months ago (2012-04-20 00:25:25 UTC) #12
Ryan Sleevi
lgtm
8 years, 8 months ago (2012-04-20 00:31:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/10073024/19002
8 years, 8 months ago (2012-04-20 00:35:11 UTC) #14
commit-bot: I haz the power
Try job failure for 10073024-19002 on linux_clang for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=16005 Step "update" is always ...
8 years, 8 months ago (2012-04-20 00:42:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/10073024/19002
8 years, 8 months ago (2012-04-20 01:14:00 UTC) #16
commit-bot: I haz the power
8 years, 8 months ago (2012-04-20 03:24:14 UTC) #17
Change committed as 133142

Powered by Google App Engine
This is Rietveld 408576698