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

Issue 238793007: Added GetNetworkOperatorID util func in net/base/net_util and a non-trivial implementation for Andr… (Closed)

Created:
6 years, 8 months ago by bolian
Modified:
6 years, 8 months ago
Reviewers:
bengr, Yaron, mef, mmenke, brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Added GetNetworkOperatorID util func in net/base/net_util and a non-trivial implementation for Android platform. This is the first step to add mobile carrier ID into UMA report. Bug provides background information. Please advise if this is not a proper place to hold the change. BUG=355604 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265513

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move android implementation to net/android/network_library.* #

Patch Set 3 : . #

Total comments: 12

Patch Set 4 : Moved the change into content/common/android. #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M content/common/android/device_telephony_info.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/android/device_telephony_info.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/DeviceTelephonyInfo.java View 1 2 3 4 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
bolian
Hello Matt, Misha and Ben, This CL is ready to review. It adds an API ...
6 years, 8 months ago (2014-04-16 17:42:18 UTC) #1
bengr
On 2014/04/16 17:42:18, bolian wrote: > Hello Matt, Misha and Ben, > > This CL ...
6 years, 8 months ago (2014-04-16 17:53:14 UTC) #2
mef
On 2014/04/16 17:53:14, bengr1 wrote: > On 2014/04/16 17:42:18, bolian wrote: > > Hello Matt, ...
6 years, 8 months ago (2014-04-16 18:47:07 UTC) #3
bolian
I am thinking we need a common API so that other platform can add implementation ...
6 years, 8 months ago (2014-04-16 18:54:51 UTC) #4
mef
https://codereview.chromium.org/238793007/diff/1/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/238793007/diff/1/net/base/net_util.cc#newcode1847 net/base/net_util.cc:1847: return base::android::ConvertJavaStringToUTF8( I meant move this Android-specific implementation into ...
6 years, 8 months ago (2014-04-16 20:57:57 UTC) #5
bolian
https://codereview.chromium.org/238793007/diff/1/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/238793007/diff/1/net/base/net_util.cc#newcode1847 net/base/net_util.cc:1847: return base::android::ConvertJavaStringToUTF8( Done. Yes, I think that is better. ...
6 years, 8 months ago (2014-04-16 23:40:52 UTC) #6
bolian
ping.
6 years, 8 months ago (2014-04-21 17:08:07 UTC) #7
mef
https://codereview.chromium.org/238793007/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/238793007/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode249 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:249: (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); telephonyManager may be null: http://stackoverflow.com/questions/13050292/chances-of-telephony-service-return-null
6 years, 8 months ago (2014-04-21 17:13:42 UTC) #8
Yaron
If mmenke/mef are fine with this functionality added to net_util then this lgtm. If you ...
6 years, 8 months ago (2014-04-21 17:19:36 UTC) #9
mef
On 2014/04/21 17:19:36, Yaron wrote: > If mmenke/mef are fine with this functionality added to ...
6 years, 8 months ago (2014-04-21 17:27:28 UTC) #10
bolian
I plan to call this in chrome/browser/metrics/metrics_network_observer.cc whenever the network is changed. I think I ...
6 years, 8 months ago (2014-04-21 17:47:46 UTC) #11
bengr
https://codereview.chromium.org/238793007/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/238793007/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode244 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:244: * Returns the numeric name (MCC+MNC) of current registered ...
6 years, 8 months ago (2014-04-21 20:50:57 UTC) #12
bolian
Moved the change to under content/common/android as suggested by Yaron. Please take a look again. ...
6 years, 8 months ago (2014-04-21 22:37:17 UTC) #13
mef
lgtm, but I'm not an owner out there...
6 years, 8 months ago (2014-04-21 22:45:18 UTC) #14
bolian
Added Brett, who is an owner. Hello, Brett, could you take a look at the ...
6 years, 8 months ago (2014-04-21 23:09:38 UTC) #15
Yaron
lgtm
6 years, 8 months ago (2014-04-22 00:26:27 UTC) #16
bengr
lgtm
6 years, 8 months ago (2014-04-22 01:08:18 UTC) #17
mmenke
On 2014/04/22 01:08:18, bengr1 wrote: > lgtm I defer to Misha on this one, no ...
6 years, 8 months ago (2014-04-22 19:40:42 UTC) #18
mef
On 2014/04/22 19:40:42, mmenke wrote: > On 2014/04/22 01:08:18, bengr1 wrote: > > lgtm > ...
6 years, 8 months ago (2014-04-22 19:48:02 UTC) #19
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 8 months ago (2014-04-22 21:58:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/238793007/80001
6 years, 8 months ago (2014-04-22 21:59:03 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 22:31:37 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-22 22:31:37 UTC) #23
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 8 months ago (2014-04-23 01:51:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/238793007/80001
6 years, 8 months ago (2014-04-23 01:52:02 UTC) #25
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 03:30:27 UTC) #26
Message was sent while issue was closed.
Change committed as 265513

Powered by Google App Engine
This is Rietveld 408576698