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

Issue 658903002: Starting a refactor to allow adding metrics on upload. (Closed)

Created:
6 years, 2 months ago by Maria
Modified:
6 years, 2 months ago
CC:
chromium-reviews, Ilya Sherman, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Record document mode histogram in UMA on every upload. * Refactors the code to allow adding metrics as part of metrics provider interface * Implements a function in android_metrics_provider to record a new histogram which records the current document mode. This is needed for better analysis in Hera. I am adding a new histogram because the semantics are a bit different from DocumentActivity.RunningMode. The previous histogram is used only to record eligible devices that have manually opted in or out. The new histogram will record for all devices regardless of whether they could possibly be in document mode. BUG=418642 Committed: https://crrev.com/191028987824922561697fe1cf7056164495dfa9 Cr-Commit-Position: refs/heads/master@{#300375}

Patch Set 1 #

Patch Set 2 : Remove unused includes #

Total comments: 1

Patch Set 3 : Adding chrome on android recording of document mode #

Patch Set 4 : Style fixes #

Total comments: 13

Patch Set 5 : Add histogram data and address comments #

Patch Set 6 : Switch to using RecordGeneralMetrics #

Total comments: 1

Patch Set 7 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -25 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/feature_utilities.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/android/feature_utilities.cc View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/metrics/android_metrics_provider.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/metrics/android_metrics_provider.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/metrics/signin_status_metrics_provider.h View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/metrics/signin_status_metrics_provider.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M components/metrics/metrics_provider.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Maria
So this is not yet the full code, but I wanted to see if you ...
6 years, 2 months ago (2014-10-15 21:23:05 UTC) #2
Alexei Svitkine (slow)
LGTM % comment - looks great! "The part I wanted to make sure about, does ...
6 years, 2 months ago (2014-10-15 21:39:02 UTC) #4
Alexei Svitkine (slow)
By the way, for the new bits - maybe they can be added to the ...
6 years, 2 months ago (2014-10-15 21:39:59 UTC) #5
Maria
This is now ready for review, please take a look.
6 years, 2 months ago (2014-10-17 01:22:04 UTC) #7
Ted C
androidy bits - lgtm https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.cc File chrome/browser/android/feature_utilities.cc (right): https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.cc#newcode12 chrome/browser/android/feature_utilities.cc:12: static bool document_mode_enabled = false; ...
6 years, 2 months ago (2014-10-17 18:12:11 UTC) #8
Alexei Svitkine (slow)
Looks great, some comments below. https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.h File chrome/browser/android/feature_utilities.h (right): https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.h#newcode13 chrome/browser/android/feature_utilities.h:13: static const int DOCUMENT_MODE ...
6 years, 2 months ago (2014-10-17 18:30:52 UTC) #9
Maria
https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.cc File chrome/browser/android/feature_utilities.cc (right): https://codereview.chromium.org/658903002/diff/60001/chrome/browser/android/feature_utilities.cc#newcode12 chrome/browser/android/feature_utilities.cc:12: static bool document_mode_enabled = false; On 2014/10/17 18:12:11, Ted ...
6 years, 2 months ago (2014-10-17 21:44:50 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/658903002/diff/60001/chrome/browser/metrics/android_metrics_provider.cc File chrome/browser/metrics/android_metrics_provider.cc (right): https://codereview.chromium.org/658903002/diff/60001/chrome/browser/metrics/android_metrics_provider.cc#newcode43 chrome/browser/metrics/android_metrics_provider.cc:43: "DocumentMode.Enabled", On 2014/10/17 21:44:50, Maria wrote: > On 2014/10/17 ...
6 years, 2 months ago (2014-10-20 15:47:00 UTC) #11
Maria
Made suggested changes, PTAL
6 years, 2 months ago (2014-10-20 20:10:32 UTC) #12
Alexei Svitkine (slow)
LGTM % nit below Please also cc me on the corresponding internal change. https://codereview.chromium.org/658903002/diff/100001/chrome/browser/android/feature_utilities.cc File ...
6 years, 2 months ago (2014-10-20 21:19:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/658903002/120001
6 years, 2 months ago (2014-10-20 21:29:17 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 2 months ago (2014-10-20 23:23:09 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 23:23:55 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/191028987824922561697fe1cf7056164495dfa9
Cr-Commit-Position: refs/heads/master@{#300375}

Powered by Google App Engine
This is Rietveld 408576698