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

Issue 943823002: Add UMA histogram for whether page loads are mobile optimized (Closed)

Created:
5 years, 10 months ago by nyquist
Modified:
5 years, 10 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA histogram for whether page loads are mobile optimized This adds a boolean histogram for whether Chrome assumes the web page is mobile optimized. It is recorded as soon as the Tab gets the callback for didFinishLoad(). On every call to didNavigateMainFrame(), the bit the bit it is cleared again. This is only recorded for the main frame. The viewport might not be correctly identified when didFinishLoad() gets called, at which point the stat might be a false negative. This means that this stat could be considered a lower bound for mobile optimized pages. BUG=None Committed: https://crrev.com/2a5fb80d2ff6459eaa5fe52a3ca08ffad32de5d6 Cr-Commit-Position: refs/heads/master@{#317451}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix histogram xml #

Patch Set 3 : Move to Tab instead, since ContentViewCore might be too low-level for this. #

Patch Set 4 : Merged from master #

Patch Set 5 : Do not track native pages. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/Tab.java View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
nyquist
cjhopman: PTAL at all things jdduke: PTAL content/android OWNERS isherman: PTAL tools/metrics
5 years, 10 months ago (2015-02-19 23:15:56 UTC) #2
jdduke (slow)
aelias@: Any thoughts on the potential for racing here? Looks like the |mIsMobileOptimizedHint| is set ...
5 years, 10 months ago (2015-02-19 23:40:00 UTC) #4
Ilya Sherman
LGTM % nits: https://codereview.chromium.org/943823002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/943823002/diff/1/tools/metrics/histograms/histograms.xml#newcode15245 tools/metrics/histograms/histograms.xml:15245: +<histogram name="Navigation.IsMobileOptimized" enum="Boolean"> nit: Please associate ...
5 years, 10 months ago (2015-02-19 23:51:26 UTC) #5
jdduke (slow)
Just read the patch description... I guess if we're ok that this is a lower ...
5 years, 10 months ago (2015-02-19 23:58:33 UTC) #6
aelias_OOO_until_Jul13
This value really means just that the web page fits nicely in the screen size, ...
5 years, 10 months ago (2015-02-20 00:48:42 UTC) #7
nyquist
What we are trying to measure is whether the current page is optimized for the ...
5 years, 10 months ago (2015-02-20 01:43:55 UTC) #8
nyquist
jdduke, aelias: PTAL. I moved this to tab instead since there might be content that ...
5 years, 10 months ago (2015-02-20 02:01:37 UTC) #10
aelias_OOO_until_Jul13
I don't think load-finish winning the race is very likely, but in the interest of ...
5 years, 10 months ago (2015-02-20 02:22:53 UTC) #11
cjhopman
On 2015/02/20 02:22:53, aelias wrote: > I don't think load-finish winning the race is very ...
5 years, 10 months ago (2015-02-20 02:31:43 UTC) #12
aelias_OOO_until_Jul13
On 2015/02/20 at 02:31:43, cjhopman wrote: > On 2015/02/20 02:22:53, aelias wrote: > > I ...
5 years, 10 months ago (2015-02-20 02:42:59 UTC) #13
aelias_OOO_until_Jul13
still lgtm
5 years, 10 months ago (2015-02-20 22:55:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/943823002/80001
5 years, 10 months ago (2015-02-20 22:56:52 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-21 00:44:46 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 00:45:34 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2a5fb80d2ff6459eaa5fe52a3ca08ffad32de5d6
Cr-Commit-Position: refs/heads/master@{#317451}

Powered by Google App Engine
This is Rietveld 408576698