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 2879703002: WebView: Add channel info for UMA (Closed)

Created:
3 years, 7 months ago by paulmiller
Modified:
3 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), net-reviews_chromium.org, noyau+watch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, marq+watch_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebView: Add channel info for UMA Inspect the WebView provider package name to determine the channel. This only works for Monochrome (on Android N+); stand-alone WebView uses the same package across channels, and will still be reported as "unknown". Move version_utils from metrics/net/ to metrics/, and move the channel-checking code from chrome/browser/ to version_info/, so that WebView can use them. Split off the part of version_utils that depends on //ui/base, since most users of version_utils don't need that part, and it pulls in a huge tree of dependencies. BUG=711084 Review-Url: https://codereview.chromium.org/2879703002 Cr-Commit-Position: refs/heads/master@{#477124} Committed: https://chromium.googlesource.com/chromium/src/+/234ec23e9f56bb01af5c59922681b114da3aa540

Patch Set 1 #

Total comments: 4

Patch Set 2 : address nits #

Patch Set 3 : fix deps #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : split off ui dependency to fix cronet #

Patch Set 7 : fix deps #

Patch Set 8 : fix instrumentation test crash #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -125 lines) Patch
M android_webview/browser/aw_metrics_service_client.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_metrics_service_client.cc View 1 2 3 4 6 chunks +19 lines, -4 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwMetricsServiceClient.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/channel_info.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/channel_info_android.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
D components/metrics/net/version_utils.h View 1 chunk +0 lines, -29 lines 0 comments Download
D components/metrics/net/version_utils.cc View 1 chunk +0 lines, -41 lines 0 comments Download
A + components/metrics/version_utils.h View 2 chunks +4 lines, -5 lines 0 comments Download
A + components/metrics/version_utils.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/device_info/local_device_info_provider_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/version_info/BUILD.gn View 1 2 3 4 5 6 2 chunks +15 lines, -1 line 0 comments Download
A components/version_info/channel_android.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A components/version_info/channel_android.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M components/version_info/version_info.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M components/version_info/version_info.cc View 1 2 3 4 5 2 chunks +0 lines, -18 lines 0 comments Download
A components/version_info/version_string.h View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A components/version_info/version_string.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_service_client.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/common/channel_info.mm View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/today_extension/today_metrics_logger.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 62 (34 generated)
paulmiller
On 2017/05/11 22:08:21, paulmiller wrote: > mailto:paulmiller@chromium.org changed reviewers: > + mailto:asvitkine@chromium.org, mailto:rohitrao@chromium.org, mailto:sgurun@chromium.org, > ...
3 years, 7 months ago (2017-05-11 22:11:49 UTC) #3
Nico
chrome lgtm
3 years, 7 months ago (2017-05-11 22:36:22 UTC) #4
Nico
(I'm a bit surprised you bake the channel into the executable like that though. Do ...
3 years, 7 months ago (2017-05-11 22:37:02 UTC) #5
paulmiller
On 2017/05/11 22:37:02, Nico wrote: > (I'm a bit surprised you bake the channel into ...
3 years, 7 months ago (2017-05-11 22:42:35 UTC) #6
rohitrao (ping after 24h)
ios/ lgtm
3 years, 7 months ago (2017-05-12 00:56:52 UTC) #7
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2879703002/diff/1/android_webview/browser/aw_metrics_service_client_impl.cc File android_webview/browser/aw_metrics_service_client_impl.cc (right): https://codereview.chromium.org/2879703002/diff/1/android_webview/browser/aw_metrics_service_client_impl.cc#newcode99 android_webview/browser/aw_metrics_service_client_impl.cc:99: channel_ = version_info::ChannelFromPackageName(package_name.c_str()); Nit: This seems like a ...
3 years, 7 months ago (2017-05-12 14:26:22 UTC) #8
paulmiller
https://codereview.chromium.org/2879703002/diff/1/android_webview/browser/aw_metrics_service_client_impl.cc File android_webview/browser/aw_metrics_service_client_impl.cc (right): https://codereview.chromium.org/2879703002/diff/1/android_webview/browser/aw_metrics_service_client_impl.cc#newcode99 android_webview/browser/aw_metrics_service_client_impl.cc:99: channel_ = version_info::ChannelFromPackageName(package_name.c_str()); On 2017/05/12 14:26:22, Alexei Svitkine (slow) ...
3 years, 7 months ago (2017-05-12 19:45:36 UTC) #9
Torne
On 2017/05/11 22:42:35, paulmiller wrote: > On 2017/05/11 22:37:02, Nico wrote: > > (I'm a ...
3 years, 7 months ago (2017-05-12 19:55:32 UTC) #10
paulmiller
replacing sgurun@ with torne@, at sgurun@'s request
3 years, 7 months ago (2017-05-12 22:33:26 UTC) #12
Torne
LGTM
3 years, 7 months ago (2017-05-15 18:33:36 UTC) #21
paulmiller
Blegh. It looks like, through an obscure chain of dependencies, making metrics depend on version_info ...
3 years, 7 months ago (2017-05-19 23:50:39 UTC) #22
Torne
On 2017/05/19 23:50:39, paulmiller wrote: > Blegh. It looks like, through an obscure chain of ...
3 years, 7 months ago (2017-05-22 15:48:15 UTC) #23
paulmiller
On 2017/05/22 15:48:15, Torne wrote: > On 2017/05/19 23:50:39, paulmiller wrote: > > Blegh. It ...
3 years, 7 months ago (2017-05-22 20:57:35 UTC) #24
Alexei Svitkine (slow)
Another option would be to move l10n_util::GetStringUTF8() to a separate target, so that version_info doesn't ...
3 years, 7 months ago (2017-05-23 15:49:58 UTC) #34
paulmiller
Adding pavely@ to PTAL at components/sync/. The context here is that I'm splitting off the ...
3 years, 7 months ago (2017-05-26 00:51:47 UTC) #36
pavely
components/sync lgtm
3 years, 6 months ago (2017-05-30 16:36:16 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703002/160001
3 years, 6 months ago (2017-05-30 17:54:32 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/226398)
3 years, 6 months ago (2017-05-30 19:24:22 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703002/160001
3 years, 6 months ago (2017-05-30 20:47:11 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/451117)
3 years, 6 months ago (2017-05-30 20:58:18 UTC) #47
paulmiller
(This is failing in different places, so probably flakes, so I'm just going to keep ...
3 years, 6 months ago (2017-05-30 21:43:29 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703002/160001
3 years, 6 months ago (2017-05-30 21:44:22 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/226615)
3 years, 6 months ago (2017-05-30 23:25:15 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703002/160001
3 years, 6 months ago (2017-05-31 01:08:32 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/451447)
3 years, 6 months ago (2017-05-31 01:18:52 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703002/160001
3 years, 6 months ago (2017-06-05 21:36:58 UTC) #58
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/234ec23e9f56bb01af5c59922681b114da3aa540
3 years, 6 months ago (2017-06-05 23:50:38 UTC) #61
paulmiller
3 years, 6 months ago (2017-06-05 23:56:11 UTC) #62
Message was sent while issue was closed.
On 2017/06/05 23:50:38, commit-bot: I haz the power wrote:
> Committed patchset #9 (id:160001) as
>
https://chromium.googlesource.com/chromium/src/+/234ec23e9f56bb01af5c59922681...

Woooo, 5th try! Nailed it.

Powered by Google App Engine
This is Rietveld 408576698