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

Issue 12805010: Implementing EvictedDomainCookieCounter to keep user metrics on cookie eviction and reinstatement. (Closed)

Created:
7 years, 9 months ago by huangs
Modified:
7 years, 8 months ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Implementing EvictedDomainCookieCounter to keep statistics on cookie eviction and reinstatement. BUG=225765 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192866

Patch Set 1 #

Total comments: 36

Patch Set 2 : Cleanups; simplifying garbage collection; simplifying UMA; fixing off-by-1 meaning of max_size_. #

Total comments: 33

Patch Set 3 : Style fixes; fixing incorrect reinstatement of expired cookie. #

Total comments: 14

Patch Set 4 : Cleanups and comment fixes. #

Total comments: 18

Patch Set 5 : Moving EvictedDomainCookieCounter to chrome/browser/net; fixing GarbageCollect() algorithm. #

Total comments: 6

Patch Set 6 : Sync and cleanup. #

Total comments: 43

Patch Set 7 : Style and comment fixes; changing partial_sort() comparator to fix Linux build. #

Total comments: 7

Patch Set 8 : Comment fixes; variable renaming. #

Patch Set 9 : Fixing Linux warnings (that lead to error). #

Patch Set 10 : Another attempt to fix weird scoped_ptr<> error in Linux. #

Patch Set 11 : Using scoped_ptr<Type>::PassAs<ParentType>() to solve Linux scoped_ptr<> compile error. #

Patch Set 12 : Fixing absense of private virtual destructor of ChangedDelegateDummy. #

Patch Set 13 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+745 lines, -3 lines) Patch
A chrome/browser/net/evicted_domain_cookie_counter.h View 1 2 3 4 5 6 7 10 1 chunk +146 lines, -0 lines 0 comments Download
A chrome/browser/net/evicted_domain_cookie_counter.cc View 1 2 3 4 5 6 7 8 1 chunk +202 lines, -0 lines 0 comments Download
A chrome/browser/net/evicted_domain_cookie_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +389 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M net/cookies/canonical_cookie.h View 1 chunk +1 line, -1 line 0 comments Download
M net/cookies/cookie_monster.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
huangs
PTAL. Is there a BUG id I can use?
7 years, 9 months ago (2013-03-21 18:05:15 UTC) #1
erikwright (departed)
I've only looked at the implementation so far, not the unittests. https://codereview.chromium.org/12805010/diff/1/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): ...
7 years, 9 months ago (2013-03-21 19:22:19 UTC) #2
huangs
PTAL. https://codereview.chromium.org/12805010/diff/1/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/1/net/cookies/evicted_domain_cookie_counter.cc#newcode41 net/cookies/evicted_domain_cookie_counter.cc:41: // Histogram variables; see CookieMonster::InitializeHistograms() in On 2013/03/21 ...
7 years, 9 months ago (2013-03-21 22:08:09 UTC) #3
erikwright (departed)
https://codereview.chromium.org/12805010/diff/8001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/8001/net/cookies/evicted_domain_cookie_counter.cc#newcode45 net/cookies/evicted_domain_cookie_counter.cc:45: HISTOGRAM_CUSTOM_TIMES("Cookie.ReinstatedCookiesGoogleSeconds", I believe that this macro already defines a ...
7 years, 9 months ago (2013-03-22 15:53:26 UTC) #4
huangs
PTAL. https://codereview.chromium.org/12805010/diff/8001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/8001/net/cookies/evicted_domain_cookie_counter.cc#newcode45 net/cookies/evicted_domain_cookie_counter.cc:45: HISTOGRAM_CUSTOM_TIMES("Cookie.ReinstatedCookiesGoogleSeconds", Yeah it can be inlined. https://codereview.chromium.org/12805010/diff/8001/net/cookies/evicted_domain_cookie_counter.cc#newcode45 net/cookies/evicted_domain_cookie_counter.cc:45: ...
7 years, 9 months ago (2013-03-22 21:38:07 UTC) #5
erikwright (departed)
A couple minor comments, but looking quite good. https://codereview.chromium.org/12805010/diff/16001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/16001/net/cookies/evicted_domain_cookie_counter.cc#newcode7 net/cookies/evicted_domain_cookie_counter.cc:7: #include ...
7 years, 9 months ago (2013-03-25 17:29:40 UTC) #6
huangs
PTAL. https://codereview.chromium.org/12805010/diff/16001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/16001/net/cookies/evicted_domain_cookie_counter.cc#newcode7 net/cookies/evicted_domain_cookie_counter.cc:7: #include <limits> Was to find max int for ...
7 years, 9 months ago (2013-03-25 21:02:12 UTC) #7
erikwright (departed)
https://codereview.chromium.org/12805010/diff/24001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/24001/net/cookies/evicted_domain_cookie_counter.cc#newcode118 net/cookies/evicted_domain_cookie_counter.cc:118: FreeEvictedCookie(key); On the surface, it would seem like this ...
7 years, 9 months ago (2013-03-26 16:38:13 UTC) #8
huangs
Fun! PTAL. https://codereview.chromium.org/12805010/diff/24001/net/cookies/evicted_domain_cookie_counter.cc File net/cookies/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/24001/net/cookies/evicted_domain_cookie_counter.cc#newcode118 net/cookies/evicted_domain_cookie_counter.cc:118: FreeEvictedCookie(key); Removed. I was being paranoid by ...
7 years, 9 months ago (2013-03-27 00:40:25 UTC) #9
erikwright (departed)
LGTM. LVGTM :) https://codereview.chromium.org/12805010/diff/31001/chrome/browser/net/evicted_domain_cookie_counter.cc File chrome/browser/net/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/31001/chrome/browser/net/evicted_domain_cookie_counter.cc#newcode64 chrome/browser/net/evicted_domain_cookie_counter.cc:64: EvictedDomainCookieCounter::EvictedCookieKey GetKey( Hmm, OK, I guess ...
7 years, 9 months ago (2013-03-27 01:33:44 UTC) #10
huangs
OWNER review for jochen@: chrome/chrome_browser.gypi: Adding 2 files and 1 test. OWNER review for willchan@: ...
7 years, 9 months ago (2013-03-28 22:56:20 UTC) #11
willchan no longer on Chromium
Redirecting to mmenke
7 years, 9 months ago (2013-03-28 23:47:39 UTC) #12
mmenke
browser/profile looks fine, as does src/net, which you also need an owner for, but I ...
7 years, 8 months ago (2013-03-29 15:22:16 UTC) #13
mmenke
https://codereview.chromium.org/12805010/diff/45001/chrome/browser/net/evicted_domain_cookie_counter.h File chrome/browser/net/evicted_domain_cookie_counter.h (right): https://codereview.chromium.org/12805010/diff/45001/chrome/browser/net/evicted_domain_cookie_counter.h#newcode49 chrome/browser/net/evicted_domain_cookie_counter.h:49: bool is_google_; On 2013/03/29 15:22:16, mmenke wrote: > Per ...
7 years, 8 months ago (2013-03-29 15:23:04 UTC) #14
jochen (gone - plz use gerrit)
*gypi* lgtm
7 years, 8 months ago (2013-04-02 14:49:37 UTC) #15
huangs
For mmenke@: - Please note that this user metrics is meant to be temporary code. ...
7 years, 8 months ago (2013-04-02 19:21:51 UTC) #16
mmenke
Thanks for the cleanups! profiles/ and net/ LGTM. https://codereview.chromium.org/12805010/diff/56001/chrome/browser/net/evicted_domain_cookie_counter_unittest.cc File chrome/browser/net/evicted_domain_cookie_counter_unittest.cc (right): https://codereview.chromium.org/12805010/diff/56001/chrome/browser/net/evicted_domain_cookie_counter_unittest.cc#newcode57 chrome/browser/net/evicted_domain_cookie_counter_unittest.cc:57: // ...
7 years, 8 months ago (2013-04-03 14:23:51 UTC) #17
mmenke
https://codereview.chromium.org/12805010/diff/56001/chrome/browser/net/evicted_domain_cookie_counter.cc File chrome/browser/net/evicted_domain_cookie_counter.cc (right): https://codereview.chromium.org/12805010/diff/56001/chrome/browser/net/evicted_domain_cookie_counter.cc#newcode121 chrome/browser/net/evicted_domain_cookie_counter.cc:121: // Comparator for sorting, to make recently evicted cookies ...
7 years, 8 months ago (2013-04-03 14:27:36 UTC) #18
huangs
It remains to sort out the Linux compilation issue (some strangeness with scoped_ptr<>). Otherwise it's ...
7 years, 8 months ago (2013-04-03 15:42:15 UTC) #19
huangs
I also synched, so only the 3 new files (evicted_domain_cookie_counter*) were changed.
7 years, 8 months ago (2013-04-03 15:45:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12805010/91001
7 years, 8 months ago (2013-04-04 20:46:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12805010/100001
7 years, 8 months ago (2013-04-04 21:38:24 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 21:54:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12805010/115001
7 years, 8 months ago (2013-04-07 06:27:11 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-07 06:34:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12805010/115001
7 years, 8 months ago (2013-04-08 03:15:08 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 03:18:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12805010/115001
7 years, 8 months ago (2013-04-08 19:42:37 UTC) #28
commit-bot: I haz the power
7 years, 8 months ago (2013-04-08 19:55:47 UTC) #29
Message was sent while issue was closed.
Change committed as 192866

Powered by Google App Engine
This is Rietveld 408576698