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

Issue 914673003: Correctly record TouchView metrics on suspend/shutdown (Closed)

Created:
5 years, 10 months ago by tdanderson
Modified:
5 years, 10 months ago
Reviewers:
flackr, jonross
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly record TouchView metrics on suspend/shutdown Modify the logic in MaximizeModeController to correctly record the amount of time spent in and out of TouchView in cases where the device is suspended or shut down. BUG=431829 TEST=none Committed: https://crrev.com/617d480f3c9cea2a815e2e8da9d4746f76418b2c Cr-Commit-Position: refs/heads/master@{#316090}

Patch Set 1 #

Total comments: 2

Patch Set 2 : also handle shutdown case #

Total comments: 4

Patch Set 3 : don't assume state transitions on suspend/shutdown #

Total comments: 8

Patch Set 4 : added helper function #

Patch Set 5 : compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -17 lines) Patch
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 3 chunks +18 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 3 chunks +33 lines, -14 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
tdanderson
Hey Jon, mind taking a first look at this?
5 years, 10 months ago (2015-02-10 19:27:15 UTC) #2
jonross
https://codereview.chromium.org/914673003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode296 ash/wm/maximize_mode/maximize_mode_controller.cc:296: RecordTouchViewStateTransition(); It appears that the same situation can occur ...
5 years, 10 months ago (2015-02-10 19:38:07 UTC) #3
tdanderson
Jon, can you PTAL? https://codereview.chromium.org/914673003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode296 ash/wm/maximize_mode/maximize_mode_controller.cc:296: RecordTouchViewStateTransition(); On 2015/02/10 19:38:07, jonross ...
5 years, 10 months ago (2015-02-10 21:09:54 UTC) #4
jonross
On 2015/02/10 21:09:54, tdanderson wrote: > Jon, can you PTAL? > > https://codereview.chromium.org/914673003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc > File ...
5 years, 10 months ago (2015-02-10 21:19:46 UTC) #5
tdanderson
Rob, can you PTAL?
5 years, 10 months ago (2015-02-10 21:23:31 UTC) #7
flackr
https://codereview.chromium.org/914673003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode187 ash/wm/maximize_mode/maximize_mode_controller.cc:187: RecordTouchViewStateTransition(); This looks like it will report touch view ...
5 years, 10 months ago (2015-02-10 21:32:11 UTC) #8
tdanderson
Rob and Jon, can you PTAL at the new approach? The names I chose might ...
5 years, 10 months ago (2015-02-12 19:51:00 UTC) #10
flackr
https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode192 ash/wm/maximize_mode/maximize_mode_controller.cc:192: type = TOUCH_VIEW_INTERVAL_ACTIVE; If it's a bool, can you ...
5 years, 10 months ago (2015-02-12 19:59:06 UTC) #11
tdanderson
https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode192 ash/wm/maximize_mode/maximize_mode_controller.cc:192: type = TOUCH_VIEW_INTERVAL_ACTIVE; On 2015/02/12 19:59:06, flackr wrote: > ...
5 years, 10 months ago (2015-02-12 20:30:49 UTC) #12
flackr
https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.h File ash/wm/maximize_mode/maximize_mode_controller.h (right): https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.h#newcode102 ash/wm/maximize_mode/maximize_mode_controller.h:102: enum TouchViewIntervalType { On 2015/02/12 20:30:49, tdanderson wrote: > ...
5 years, 10 months ago (2015-02-12 20:44:43 UTC) #13
jonross
https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.h File ash/wm/maximize_mode/maximize_mode_controller.h (right): https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.h#newcode102 ash/wm/maximize_mode/maximize_mode_controller.h:102: enum TouchViewIntervalType { On 2015/02/12 20:44:43, flackr wrote: > ...
5 years, 10 months ago (2015-02-12 20:49:27 UTC) #14
tdanderson
Rob, PTAL. https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode192 ash/wm/maximize_mode/maximize_mode_controller.cc:192: type = TOUCH_VIEW_INTERVAL_ACTIVE; On 2015/02/12 19:59:06, flackr ...
5 years, 10 months ago (2015-02-12 21:38:22 UTC) #15
jonross
On 2015/02/12 21:38:22, tdanderson wrote: > Rob, PTAL. > > https://codereview.chromium.org/914673003/diff/40001/ash/wm/maximize_mode/maximize_mode_controller.cc > File ash/wm/maximize_mode/maximize_mode_controller.cc (right): ...
5 years, 10 months ago (2015-02-12 21:39:42 UTC) #16
flackr
lgtm
5 years, 10 months ago (2015-02-12 22:55:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/914673003/80001
5 years, 10 months ago (2015-02-12 23:03:12 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-13 00:01:56 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 00:02:37 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/617d480f3c9cea2a815e2e8da9d4746f76418b2c
Cr-Commit-Position: refs/heads/master@{#316090}

Powered by Google App Engine
This is Rietveld 408576698