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

Issue 19234003: Extension activity log database refactoring (step 2) (Closed)

Created:
7 years, 5 months ago by mvrable
Modified:
7 years, 5 months ago
Reviewers:
felt, Matt Perry
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, felt, extensions-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Extension activity log database refactoring (step 2) This is a continuation of work started in https://codereview.chromium.org/18660004/ (committed as r211234). Start work on merging all the activity types into a single database table. This patch creates just a single table and has each of the Action types record to that table, however the class hierarchy of multiple action types is still in place. Eventually there will be just a single Action type, but the merging of that code will happen in a following patch. As a stopgap, until the merger is done, there is a WatchdogAction subclass which is used to represent records read back from the database. BUG=255730 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212429

Patch Set 1 #

Total comments: 16

Patch Set 2 : Edits from review comments and trybot errors #

Patch Set 3 : Add a TODO comment #

Patch Set 4 : Unit test fixes #

Total comments: 14

Patch Set 5 : Minor fixes #

Patch Set 6 : Rebase #

Patch Set 7 : Address a review comment; fix a unit test #

Patch Set 8 : Add a comment lost in the rebase #

Total comments: 14

Patch Set 9 : Address some reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -401 lines) Patch
M chrome/browser/extensions/activity_log/activity_actions.h View 1 2 3 4 5 6 7 8 4 chunks +45 lines, -15 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_actions.cc View 1 2 chunks +92 lines, -37 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_database.h View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_database.cc View 1 2 3 4 5 6 4 chunks +77 lines, -38 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_database_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +62 lines, -32 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -10 lines 0 comments Download
M chrome/browser/extensions/activity_log/api_actions.h View 3 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/extensions/activity_log/api_actions.cc View 1 5 chunks +28 lines, -53 lines 0 comments Download
M chrome/browser/extensions/activity_log/blocked_actions.h View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/extensions/activity_log/blocked_actions.cc View 4 chunks +18 lines, -54 lines 0 comments Download
M chrome/browser/extensions/activity_log/dom_actions.h View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/extensions/activity_log/dom_actions.cc View 1 2 3 4 4 chunks +44 lines, -79 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.h View 2 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy.cc View 1 7 chunks +51 lines, -15 lines 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/activity_log/stream_noargs_ui_policy.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/activity_log/stream_noargs_ui_policy_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_api_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mvrable
This is an early version of the next activity database refactoring patch. Could you take ...
7 years, 5 months ago (2013-07-15 21:51:51 UTC) #1
felt
Hi Michael, looking good, thanks for breaking this up into multiple CLs. I take it ...
7 years, 5 months ago (2013-07-16 06:44:03 UTC) #2
mvrable
Thanks for the feedback. Here's an updated version after going through your comments. I also ...
7 years, 5 months ago (2013-07-16 18:12:35 UTC) #3
felt
https://codereview.chromium.org/19234003/diff/1/chrome/browser/extensions/activity_log/activity_actions.cc File chrome/browser/extensions/activity_log/activity_actions.cc (right): https://codereview.chromium.org/19234003/diff/1/chrome/browser/extensions/activity_log/activity_actions.cc#newcode53 chrome/browser/extensions/activity_log/activity_actions.cc:53: bool WatchdogAction::Record(sql::Connection* db) { On 2013/07/16 18:12:35, mvrable wrote: ...
7 years, 5 months ago (2013-07-16 18:30:16 UTC) #4
mvrable
https://codereview.chromium.org/19234003/diff/1/chrome/browser/extensions/activity_log/activity_actions.cc File chrome/browser/extensions/activity_log/activity_actions.cc (right): https://codereview.chromium.org/19234003/diff/1/chrome/browser/extensions/activity_log/activity_actions.cc#newcode53 chrome/browser/extensions/activity_log/activity_actions.cc:53: bool WatchdogAction::Record(sql::Connection* db) { On 2013/07/16 18:30:17, felt wrote: ...
7 years, 5 months ago (2013-07-16 18:38:39 UTC) #5
felt
I'm pretty happy with this, please feel free to send to matt when you're ready.
7 years, 5 months ago (2013-07-17 01:46:49 UTC) #6
mvrable
Matt, This is the next patch in the extension activity log refactoring work--could you take ...
7 years, 5 months ago (2013-07-17 03:42:46 UTC) #7
Matt Perry
https://codereview.chromium.org/19234003/diff/29001/chrome/browser/extensions/activity_log/activity_database.cc File chrome/browser/extensions/activity_log/activity_database.cc (right): https://codereview.chromium.org/19234003/diff/29001/chrome/browser/extensions/activity_log/activity_database.cc#newcode191 chrome/browser/extensions/activity_log/activity_database.cc:191: if (raw_value.release()->GetAsDictionary(&dict)) { If raw_value is a List, how ...
7 years, 5 months ago (2013-07-17 22:13:19 UTC) #8
mvrable
Thanks for taking a look. I've made a couple of small fixes based on your ...
7 years, 5 months ago (2013-07-17 22:56:35 UTC) #9
Matt Perry
lgtm https://codereview.chromium.org/19234003/diff/29001/chrome/browser/extensions/activity_log/activity_database.cc File chrome/browser/extensions/activity_log/activity_database.cc (right): https://codereview.chromium.org/19234003/diff/29001/chrome/browser/extensions/activity_log/activity_database.cc#newcode191 chrome/browser/extensions/activity_log/activity_database.cc:191: if (raw_value.release()->GetAsDictionary(&dict)) { On 2013/07/17 22:56:35, mvrable wrote: ...
7 years, 5 months ago (2013-07-17 23:10:27 UTC) #10
mvrable
I rebased to fix some merge conflicts and made a few other minor fixes. Adrienne, ...
7 years, 5 months ago (2013-07-18 16:39:01 UTC) #11
felt
lgtm assuming you fix the comments below. Sorry about the delay in my review, my ...
7 years, 5 months ago (2013-07-18 17:09:59 UTC) #12
mvrable
Thanks for the additional comments. I think I've fixed them all now. I had done ...
7 years, 5 months ago (2013-07-18 18:20:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/19234003/65004
7 years, 5 months ago (2013-07-18 19:14:22 UTC) #14
commit-bot: I haz the power
7 years, 5 months ago (2013-07-18 21:26:06 UTC) #15
Message was sent while issue was closed.
Change committed as 212429

Powered by Google App Engine
This is Rietveld 408576698