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

Issue 405473004: Only track profile inactivity for non-mobile platforms. (Closed)

Created:
6 years, 5 months ago by Mike Lerman
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Only track profile inactivity for non-mobile platforms. Profile_metrics doesn't log signed-in metrics for inactive profiles. However, since mobile platforms never log active times, the signed-in metrics never get logged. Reference CLs: (introduced issue as of M35) https://codereview.chromium.org/134863002/ https://codereview.chromium.org/141663004 BUG=392948 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284486

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refine the mobile specific cod #

Total comments: 4

Patch Set 3 : Move the ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M chrome/browser/profiles/profile_metrics.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Mike Lerman
Hi Monica, PTAL? Also, I'm very open to ideas about how to make the syntax ...
6 years, 5 months ago (2014-07-17 20:44:02 UTC) #1
Mike Lerman
Brian, Your thoughts are also useful here!
6 years, 5 months ago (2014-07-17 20:46:36 UTC) #2
bcwhite
https://codereview.chromium.org/405473004/diff/1/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/405473004/diff/1/chrome/browser/profiles/profile_metrics.cc#newcode122 chrome/browser/profiles/profile_metrics.cc:122: base::Time oldest = base::Time::Now() - This is now calculating ...
6 years, 5 months ago (2014-07-18 01:13:59 UTC) #3
Mike Lerman
Hi Brian and Monica, I rewrote the code, PTAL. I agree there would be benefits ...
6 years, 5 months ago (2014-07-18 15:50:09 UTC) #4
bcwhite
https://codereview.chromium.org/405473004/diff/20001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/405473004/diff/20001/chrome/browser/profiles/profile_metrics.cc#newcode74 chrome/browser/profiles/profile_metrics.cc:74: if (info_cache.GetProfileActiveTimeAtIndex(index) < active_limit) { Can the entire condition ...
6 years, 5 months ago (2014-07-18 16:38:44 UTC) #5
Mike Lerman
https://codereview.chromium.org/405473004/diff/20001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/405473004/diff/20001/chrome/browser/profiles/profile_metrics.cc#newcode74 chrome/browser/profiles/profile_metrics.cc:74: if (info_cache.GetProfileActiveTimeAtIndex(index) < active_limit) { On 2014/07/18 16:38:44, bcwhite ...
6 years, 5 months ago (2014-07-18 17:44:52 UTC) #6
bcwhite
lgtm
6 years, 5 months ago (2014-07-21 13:21:52 UTC) #7
noms (inactive)
Ah, it's much nicer now. lgtm
6 years, 5 months ago (2014-07-21 13:49:15 UTC) #8
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 5 months ago (2014-07-21 16:43:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/405473004/40001
6 years, 5 months ago (2014-07-21 16:44:53 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 19:48:17 UTC) #11
Message was sent while issue was closed.
Change committed as 284486

Powered by Google App Engine
This is Rietveld 408576698