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

Issue 7355025: Creat BrowsingDataCookieHelper and CannedBrowsingDataCookieHelper for logging cookies at UI thread. (Closed)

Created:
9 years, 5 months ago by ycxiao
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Randy Smith (Not in Mondays)
Visibility:
Public.

Description

Creat BrowsingDataCookieHelper and CannedBrowsingDataCookieHelper for logging cookies at UI thread. BUG=XXX TEST=XXX Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95534

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : '' #

Total comments: 46

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Total comments: 2

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 7

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 19

Patch Set 13 : '' #

Total comments: 1

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+842 lines, -198 lines) Patch
A chrome/browser/browsing_data_cookie_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +134 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_cookie_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +178 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_cookie_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +196 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +16 lines, -33 lines 0 comments Download
M chrome/browser/cookies_tree_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +49 lines, -41 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 39 chunks +91 lines, -105 lines 0 comments Download
A chrome/browser/mock_browsing_data_cookie_helper.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/mock_browsing_data_cookie_helper.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/cookies_view_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -3 lines 0 comments Download
chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M net/base/cookie_monster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/cookie_monster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
ycxiao
PTAL. Thanks, Yancheng
9 years, 5 months ago (2011-07-13 19:58:59 UTC) #1
erikwright (departed)
Not a complete review, but hopefully enough to keep you busy for a bit ;) ...
9 years, 5 months ago (2011-07-18 02:08:30 UTC) #2
erikwright (departed)
Looking good. Please remember to hit 'done' on all comments after responding to them. It ...
9 years, 5 months ago (2011-07-19 14:40:33 UTC) #3
ycxiao1
http://codereview.chromium.org/7355025/diff/7001/chrome/browser/browsing_data_cookie_helper.cc File chrome/browser/browsing_data_cookie_helper.cc (right): http://codereview.chromium.org/7355025/diff/7001/chrome/browser/browsing_data_cookie_helper.cc#newcode8 chrome/browser/browsing_data_cookie_helper.cc:8: #include "chrome/browser/net/chrome_url_request_context.h" On 2011/07/18 02:08:30, erikwright wrote: > why ...
9 years, 5 months ago (2011-07-19 22:12:47 UTC) #4
Paweł Hajdan Jr.
Drive-by (chrome/test/OWNERS). Please let me also review the updated version. http://codereview.chromium.org/7355025/diff/26017/chrome/browser/browsing_data_cookie_helper_browsertest.cc File chrome/browser/browsing_data_cookie_helper_browsertest.cc (right): http://codereview.chromium.org/7355025/diff/26017/chrome/browser/browsing_data_cookie_helper_browsertest.cc#newcode14 ...
9 years, 5 months ago (2011-07-21 16:29:41 UTC) #5
ycxiao
On 2011/07/21 16:29:41, Paweł Hajdan Jr. wrote: > Drive-by (chrome/test/OWNERS). Please let me also review ...
9 years, 5 months ago (2011-07-21 16:43:35 UTC) #6
erikwright (departed)
Agree with Pawel, preferable and seemingly reasonable to convert to a unit test (other tests ...
9 years, 5 months ago (2011-07-21 17:25:08 UTC) #7
ycxiao
Hi, Remove the browser test, and add it to unit test. PTAL. Thanks! Yancheng http://codereview.chromium.org/7355025/diff/26017/chrome/browser/browsing_data_cookie_helper.cc ...
9 years, 5 months ago (2011-07-21 19:04:49 UTC) #8
erikwright (departed)
Almost there. http://codereview.chromium.org/7355025/diff/35003/chrome/browser/browsing_data_cookie_helper_unittest.cc File chrome/browser/browsing_data_cookie_helper_unittest.cc (right): http://codereview.chromium.org/7355025/diff/35003/chrome/browser/browsing_data_cookie_helper_unittest.cc#newcode22 chrome/browser/browsing_data_cookie_helper_unittest.cc:22: cookie_monster->SetCookieWithOptions( Don't use the synchronous methods, since ...
9 years, 5 months ago (2011-07-21 19:24:36 UTC) #9
ycxiao
http://codereview.chromium.org/7355025/diff/35003/chrome/browser/browsing_data_cookie_helper_unittest.cc File chrome/browser/browsing_data_cookie_helper_unittest.cc (right): http://codereview.chromium.org/7355025/diff/35003/chrome/browser/browsing_data_cookie_helper_unittest.cc#newcode22 chrome/browser/browsing_data_cookie_helper_unittest.cc:22: cookie_monster->SetCookieWithOptions( On 2011/07/21 19:24:36, erikwright wrote: > Don't use ...
9 years, 5 months ago (2011-07-21 21:17:15 UTC) #10
Paweł Hajdan Jr.
Test code LGTM with a minor comment. Thank you. http://codereview.chromium.org/7355025/diff/36007/chrome/browser/browsing_data_cookie_helper_unittest.cc File chrome/browser/browsing_data_cookie_helper_unittest.cc (right): http://codereview.chromium.org/7355025/diff/36007/chrome/browser/browsing_data_cookie_helper_unittest.cc#newcode85 chrome/browser/browsing_data_cookie_helper_unittest.cc:85: ...
9 years, 5 months ago (2011-07-22 18:07:02 UTC) #11
erikwright (departed)
A few minor comments. Please address them before submitting to an OWNER review with, of ...
9 years, 5 months ago (2011-07-25 16:50:48 UTC) #12
ycxiao
http://codereview.chromium.org/7355025/diff/36007/chrome/browser/browsing_data_cookie_helper_unittest.cc File chrome/browser/browsing_data_cookie_helper_unittest.cc (right): http://codereview.chromium.org/7355025/diff/36007/chrome/browser/browsing_data_cookie_helper_unittest.cc#newcode85 chrome/browser/browsing_data_cookie_helper_unittest.cc:85: MessageLoop message_loop; On 2011/07/22 18:07:02, Paweł Hajdan Jr. wrote: ...
9 years, 5 months ago (2011-07-26 15:35:37 UTC) #13
ycxiao
Hi Jochen, PTAL. Thanks! The purpose for this CL was applying the new asynchronous API ...
9 years, 5 months ago (2011-07-26 15:57:18 UTC) #14
ycxiao
http://codereview.chromium.org/7355025/diff/47005/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc File chrome/browser/safe_browsing/client_side_detection_host_unittest.cc (right): http://codereview.chromium.org/7355025/diff/47005/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc#newcode160 chrome/browser/safe_browsing/client_side_detection_host_unittest.cc:160: Change the place, otherwise the DCHECK of current thread ...
9 years, 5 months ago (2011-07-26 17:24:14 UTC) #15
erikwright (departed)
LGTM with one comment nit. http://codereview.chromium.org/7355025/diff/44001/chrome/browser/browsing_data_cookie_helper_unittest.cc File chrome/browser/browsing_data_cookie_helper_unittest.cc (right): http://codereview.chromium.org/7355025/diff/44001/chrome/browser/browsing_data_cookie_helper_unittest.cc#newcode28 chrome/browser/browsing_data_cookie_helper_unittest.cc:28: MessageLoop message_loop; On 2011/07/26 ...
9 years, 5 months ago (2011-07-26 17:42:00 UTC) #16
jochen (gone - plz use gerrit)
http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc File chrome/browser/browsing_data_cookie_helper.cc (right): http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc#newcode134 chrome/browser/browsing_data_cookie_helper.cc:134: if (options.exclude_httponly() && pc.IsHttpOnly()) { How can this happen? ...
9 years, 5 months ago (2011-07-27 07:17:31 UTC) #17
ycxiao
Hi Jochen, Done with the rename change. The AddChangedCookie is designed to mirror the logic ...
9 years, 5 months ago (2011-07-27 14:29:46 UTC) #18
erikwright (departed)
http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc File chrome/browser/browsing_data_cookie_helper.cc (right): http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc#newcode134 chrome/browser/browsing_data_cookie_helper.cc:134: if (options.exclude_httponly() && pc.IsHttpOnly()) { On 2011/07/27 14:29:46, ycxiao ...
9 years, 5 months ago (2011-07-27 14:47:24 UTC) #19
ycxiao
http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc File chrome/browser/browsing_data_cookie_helper.cc (right): http://codereview.chromium.org/7355025/diff/47005/chrome/browser/browsing_data_cookie_helper.cc#newcode134 chrome/browser/browsing_data_cookie_helper.cc:134: if (options.exclude_httponly() && pc.IsHttpOnly()) { On 2011/07/27 14:47:24, erikwright ...
9 years, 5 months ago (2011-07-27 16:19:58 UTC) #20
ycxiao
Hi Jochen, I modify the code according to your review. PTAL. Thanks, Yancheng
9 years, 4 months ago (2011-07-28 14:05:44 UTC) #21
jochen (gone - plz use gerrit)
LGTM, thx
9 years, 4 months ago (2011-07-28 14:11:12 UTC) #22
commit-bot: I haz the power
Presubmit check for 7355025-28027 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-07-29 16:27:45 UTC) #23
ycxiao
Hi Randy, I need your LGTM for cookiemonster.cc to submit this CL. It is a ...
9 years, 4 months ago (2011-07-29 16:36:50 UTC) #24
ycxiao
Hi Randy, I need your LGTM for cookiemonster.cc to submit this CL. It is a ...
9 years, 4 months ago (2011-07-29 19:07:32 UTC) #25
ycxiao
Hi Randy, PTAL. Changed the constructor of CanonicalCookie to Create(). Thanks, Yancheng
9 years, 4 months ago (2011-07-29 22:12:04 UTC) #26
Randy Smith (Not in Mondays)
LGTM. Another possibility (up to you, might be slightly cleaner) would be to create a ...
9 years, 4 months ago (2011-08-03 18:05:06 UTC) #27
ycxiao
On 2011/08/03 18:05:06, rdsmith wrote: > LGTM. Another possibility (up to you, might be slightly ...
9 years, 4 months ago (2011-08-03 23:49:27 UTC) #28
commit-bot: I haz the power
Try job failure for 7355025-57001 (retry) on linux for step "compile" (clobber build). It's a ...
9 years, 4 months ago (2011-08-04 00:39:07 UTC) #29
commit-bot: I haz the power
Try job failure for 7355025-68001 (retry) on linux for step "compile" (clobber build). It's a ...
9 years, 4 months ago (2011-08-04 19:10:46 UTC) #30
commit-bot: I haz the power
Change committed as 95534
9 years, 4 months ago (2011-08-04 23:28:18 UTC) #31
ycxiao
9 years, 4 months ago (2011-08-08 15:28:15 UTC) #32
http://codereview.chromium.org/7355025/diff/78026/chrome/browser/browsing_dat...
File chrome/browser/browsing_data_cookie_helper_unittest.cc (right):

http://codereview.chromium.org/7355025/diff/78026/chrome/browser/browsing_dat...
chrome/browser/browsing_data_cookie_helper_unittest.cc:30: // Create an new IO
thread to current message loop because
The heap check fails because of leak at GetURLRequestContext.
http://build.chromium.org/p/chromium.memory/builders/Linux%20Heapcheck/builds...
I notice that the URLRequestContextGetter need be delete on the IO thread. So if
we don't have an IO thread it will leak. It also need to be at the same thread
as the created thread. So I delete the real io thread and create a new one at
current messageloop.

Powered by Google App Engine
This is Rietveld 408576698