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

Issue 18878009: Add functions to clean URLs from the activity log (Closed)

Created:
7 years, 5 months ago by karenlees
Modified:
7 years, 3 months ago
Reviewers:
felt, mvrable
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, browser-components-watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Adds functions to clean URLs from the activity log DB. BUG=253367 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220075

Patch Set 1 : Functions to clean URLs from the activity log #

Patch Set 2 : Fix some comments #

Total comments: 19

Patch Set 3 : Changes after refactoring. #

Patch Set 4 : Remove some logging #

Patch Set 5 : no changes - seeing if the diff view works better #

Patch Set 6 : Added counting policy #

Total comments: 24

Patch Set 7 : Updates for review comments #

Patch Set 8 : minor cleanup - should have been in last patchw #

Patch Set 9 : Merge with 16703004 #

Patch Set 10 : Fix formatting diffs from merge #

Patch Set 11 : Revert history file changes - will do them on a new CL #

Total comments: 5

Patch Set 12 : minor fixes #

Patch Set 13 : Return after errors #

Total comments: 5

Patch Set 14 : Update tests to check fields directly #

Patch Set 15 : Change EXPECT_EQ back to ASSERT_EQ #

Patch Set 16 : use const_iterator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -1 line) Patch
M chrome/browser/extensions/activity_log/activity_log.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_policy.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +76 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +161 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +159 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
karenlees
This doesn't have the changes to the history code in it. I updated history_service.cc and ...
7 years, 5 months ago (2013-07-16 23:57:04 UTC) #1
felt
Hi Karen, a comment about structure below. https://codereview.chromium.org/18878009/diff/13001/chrome/browser/extensions/activity_log/activity_database.h File chrome/browser/extensions/activity_log/activity_database.h (right): https://codereview.chromium.org/18878009/diff/13001/chrome/browser/extensions/activity_log/activity_database.h#newcode65 chrome/browser/extensions/activity_log/activity_database.h:65: static const ...
7 years, 5 months ago (2013-07-17 01:55:40 UTC) #2
mvrable
This is looking good overall. Some of my comments are stylistic suggestions which you don't ...
7 years, 5 months ago (2013-07-17 16:41:23 UTC) #3
karenlees
No hurry to review these as it won't get in until M31 anyway. I think ...
7 years, 4 months ago (2013-08-08 23:36:37 UTC) #4
karenlees
This has the counting policy added now. As discussed, I can't get the DeleteSpecificURLs to ...
7 years, 4 months ago (2013-08-24 01:37:02 UTC) #5
mvrable
Some comments which should help fix the unit tests for the counting policy. I haven't ...
7 years, 3 months ago (2013-08-26 18:14:57 UTC) #6
mvrable
https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc File chrome/browser/extensions/activity_log/fullstream_ui_policy.cc (right): https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc#newcode196 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc:196: Add a activity_database()->AdviseFlush(ActivityDatabase::kFlushImmediately); to the start of this method ...
7 years, 3 months ago (2013-08-26 18:22:41 UTC) #7
mvrable
https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode548 chrome/browser/extensions/activity_log/counting_policy.cc:548: // Ensure data is flushed to the database first ...
7 years, 3 months ago (2013-08-26 20:38:50 UTC) #8
karenlees
https://chromiumcodereview.appspot.com/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://chromiumcodereview.appspot.com/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode548 chrome/browser/extensions/activity_log/counting_policy.cc:548: // Ensure data is flushed to the database first ...
7 years, 3 months ago (2013-08-26 22:58:36 UTC) #9
mvrable
lgtm https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.h File chrome/browser/extensions/activity_log/counting_policy.h (right): https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.h#newcode74 chrome/browser/extensions/activity_log/counting_policy.h:74: virtual void DoRemoveURLs(const std::vector<GURL>& restrict_urls); On 2013/08/26 22:58:36, ...
7 years, 3 months ago (2013-08-27 17:17:37 UTC) #10
karenlees
On 2013/08/27 17:17:37, mvrable wrote: > lgtm > > https://codereview.chromium.org/18878009/diff/64001/chrome/browser/extensions/activity_log/counting_policy.h > File chrome/browser/extensions/activity_log/counting_policy.h (right): > ...
7 years, 3 months ago (2013-08-27 18:35:52 UTC) #11
felt
On 2013/08/27 18:35:52, karenlees wrote: > On 2013/08/27 17:17:37, mvrable wrote: > > lgtm > ...
7 years, 3 months ago (2013-08-27 18:44:38 UTC) #12
karenlees
On 2013/08/27 18:44:38, felt wrote: > On 2013/08/27 18:35:52, karenlees wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 19:09:26 UTC) #13
felt
On 2013/08/27 19:09:26, karenlees wrote: > On 2013/08/27 18:44:38, felt wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 19:10:04 UTC) #14
karenlees
On 2013/08/27 19:10:04, felt wrote: > On 2013/08/27 19:09:26, karenlees wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 19:26:17 UTC) #15
karenlees
On 2013/08/27 19:26:17, karenlees wrote: > On 2013/08/27 19:10:04, felt wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 19:30:42 UTC) #16
felt
Hi Karen, I think the new cleanup method needs to be part of the delegate ...
7 years, 3 months ago (2013-08-27 19:59:03 UTC) #17
karenlees
Hi Adrienne, I thought it had been agreed in previous CL comments not to use ...
7 years, 3 months ago (2013-08-27 21:13:25 UTC) #18
mvrable
https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode592 chrome/browser/extensions/activity_log/counting_policy.cc:592: << statement.GetSQLStatement(); On 2013/08/27 19:59:03, felt wrote: > I ...
7 years, 3 months ago (2013-08-27 21:16:34 UTC) #19
felt
On 2013/08/27 21:16:34, mvrable wrote: > https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc > File chrome/browser/extensions/activity_log/counting_policy.cc (right): > > https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode592 > ...
7 years, 3 months ago (2013-08-27 21:36:56 UTC) #20
karenlees
https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc File chrome/browser/extensions/activity_log/counting_policy.cc (right): https://codereview.chromium.org/18878009/diff/96001/chrome/browser/extensions/activity_log/counting_policy.cc#newcode592 chrome/browser/extensions/activity_log/counting_policy.cc:592: << statement.GetSQLStatement(); On 2013/08/27 21:16:34, mvrable wrote: > On ...
7 years, 3 months ago (2013-08-27 22:28:54 UTC) #21
felt
just some nits the comment on testing is meant to apply to the other tests, ...
7 years, 3 months ago (2013-08-27 23:16:55 UTC) #22
karenlees
https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc File chrome/browser/extensions/activity_log/counting_policy_unittest.cc (right): https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc#newcode256 chrome/browser/extensions/activity_log/counting_policy_unittest.cc:256: ASSERT_EQ(action_urls_cleared, actions->at(0)->PrintForDebug()); On 2013/08/27 23:16:55, felt wrote: > I'm ...
7 years, 3 months ago (2013-08-27 23:26:54 UTC) #23
felt
https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc File chrome/browser/extensions/activity_log/counting_policy_unittest.cc (right): https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc#newcode256 chrome/browser/extensions/activity_log/counting_policy_unittest.cc:256: ASSERT_EQ(action_urls_cleared, actions->at(0)->PrintForDebug()); On 2013/08/27 23:26:55, karenlees wrote: > On ...
7 years, 3 months ago (2013-08-27 23:32:47 UTC) #24
karenlees
On 2013/08/27 23:32:47, felt wrote: > https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc > File chrome/browser/extensions/activity_log/counting_policy_unittest.cc (right): > > https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc#newcode256 > ...
7 years, 3 months ago (2013-08-27 23:34:59 UTC) #25
felt
On 2013/08/27 23:34:59, karenlees wrote: > On 2013/08/27 23:32:47, felt wrote: > > > https://codereview.chromium.org/18878009/diff/109001/chrome/browser/extensions/activity_log/counting_policy_unittest.cc ...
7 years, 3 months ago (2013-08-27 23:42:34 UTC) #26
felt
On 2013/08/27 23:42:34, felt wrote: > On 2013/08/27 23:34:59, karenlees wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 23:43:43 UTC) #27
karenlees
On 2013/08/27 23:43:43, felt wrote: > On 2013/08/27 23:42:34, felt wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 02:07:36 UTC) #28
felt
lgtm
7 years, 3 months ago (2013-08-28 05:18:48 UTC) #29
felt
On 2013/08/28 02:07:36, karenlees wrote: > On 2013/08/27 23:43:43, felt wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 05:19:26 UTC) #30
karenlees
On 2013/08/28 05:19:26, felt wrote: > On 2013/08/28 02:07:36, karenlees wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 14:34:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/karenlees@chromium.org/18878009/123001
7 years, 3 months ago (2013-08-28 14:36:16 UTC) #32
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-28 16:02:02 UTC) #33
karenlees
On 2013/08/28 16:02:02, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 3 months ago (2013-08-28 16:17:09 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/karenlees@chromium.org/18878009/146001
7 years, 3 months ago (2013-08-28 17:00:02 UTC) #35
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 20:12:53 UTC) #36
Message was sent while issue was closed.
Change committed as 220075

Powered by Google App Engine
This is Rietveld 408576698