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

Issue 11421192: Save extension activity log to a file. (Closed)

Created:
8 years ago by felt
Modified:
7 years, 11 months ago
CC:
ulfar, mvrable, ataly, chromium-reviews, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Saves activity log calls into a database. Database interaction is loosely modeled after how history and bookmarks are saved, although I am not currently archiving the log after 3mo. Also gives the activity log some structure in preparation for the new UI. BUG=161002 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177235 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177426

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 28

Patch Set 4 : Working version with an I/O thread. #

Patch Set 5 : added blocked_actions #

Patch Set 6 : added more comments for ulfar #

Patch Set 7 : Added unit tests #

Patch Set 8 : bugfix #

Patch Set 9 : Another bugfix #

Patch Set 10 : Style edits #

Patch Set 11 : #

Total comments: 78

Patch Set 12 : Eric's fixes #

Patch Set 13 : tryserver compile warning fix #

Patch Set 14 : tryserver compile warning fix #

Patch Set 15 : Modified threading #

Patch Set 16 : tryserver compile bugfix #

Patch Set 17 : tryserver compile bugfix #

Patch Set 18 : tryserver bugfix #

Total comments: 4

Patch Set 19 : #

Total comments: 2

Patch Set 20 : Fixing action table constants #

Patch Set 21 : Another small fix #

Total comments: 19

Patch Set 22 : Addressing MP's comments #

Patch Set 23 : Simplifying API #

Patch Set 24 : Tryserver caught an error #

Patch Set 25 : #

Patch Set 26 : Switched licenses to 2013 for new files #

Patch Set 27 : #

Patch Set 28 : Fixing android dbg bug #

Patch Set 29 : working on android_dbg problem #

Patch Set 30 : working on android_dbg problem #

Patch Set 31 : android dbg bug #

Patch Set 32 : android dbg bug #

Patch Set 33 : android dbg bug #

Patch Set 34 : android dbg bug. #

Patch Set 35 : I BAN THEE ANDROID #

Patch Set 36 : maybe the gods will like this patchset better #

Patch Set 37 : retrying patchset upload because of GAE problems #

Patch Set 38 : retrying patchset upload now that GAE is back to normal #

Patch Set 39 : don't run unit tests on android #

Patch Set 40 : resolve a conflict with a new patch #

Patch Set 41 : Fixing a memory error? #

Patch Set 42 : The revert followed by a patch introduced some style errors #

Patch Set 43 : Still a few style errors #

Patch Set 44 : and hopefully the last errors #

Patch Set 45 : fixed unittest compile bug #

Patch Set 46 : something went wrong uploading the last patch #

Patch Set 47 : something about lkgr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1429 lines, -101 lines) Patch
A chrome/browser/extensions/activity_actions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 41 42 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/activity_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/extensions/activity_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/extensions/activity_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +100 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 3 chunks +115 lines, -18 lines 0 comments Download
M chrome/browser/extensions/activity_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 4 chunks +201 lines, -31 lines 0 comments Download
A chrome/browser/extensions/activity_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 35 36 37 38 39 40 41 42 43 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api_actions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 41 42 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api_actions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 41 42 1 chunk +154 lines, -0 lines 0 comments Download
A chrome/browser/extensions/blocked_actions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 41 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/extensions/blocked_actions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 41 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 9 chunks +85 lines, -38 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/extensions/url_actions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 41 42 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/extensions/url_actions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 41 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_activity_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_activity_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 3 chunks +9 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 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 3 chunks +5 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
felt
Ulfar, Michael-- you might want to take a peek at url_actions.h and manager_actions.h. (This CL ...
8 years ago (2012-12-01 01:30:21 UTC) #1
mvrable
I made a pass over the code looking for style issues; if there are Chrome-specific ...
8 years ago (2012-12-04 01:00:13 UTC) #2
felt
Thanks for the style check Michael! https://codereview.chromium.org/11421192/diff/4002/chrome/browser/extensions/activity_actions.h File chrome/browser/extensions/activity_actions.h (right): https://codereview.chromium.org/11421192/diff/4002/chrome/browser/extensions/activity_actions.h#newcode16 chrome/browser/extensions/activity_actions.h:16: public: On 2012/12/04 ...
8 years ago (2012-12-07 19:27:45 UTC) #3
felt
ericdingle@, can you do the first review pass? I'll add Aaron after you take a ...
8 years ago (2012-12-13 16:17:00 UTC) #4
Eric Dingle
Mostly style stuff, but looking good. https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/activity_actions.h File chrome/browser/extensions/activity_actions.h (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/activity_actions.h#newcode24 chrome/browser/extensions/activity_actions.h:24: protected: You should ...
8 years ago (2012-12-13 20:37:34 UTC) #5
felt
Addressed most of Eric's comments, with a few questions. Separately, I'm going to look into ...
8 years ago (2012-12-15 02:51:52 UTC) #6
felt
Redid how threading works - modifications to activity_log and extension_function_dispatcher. https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/activity_log.cc File chrome/browser/extensions/activity_log.cc (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/activity_log.cc#newcode119 ...
8 years ago (2012-12-17 22:45:09 UTC) #7
felt
Aaron, this is the continuation of Eric's activity log work (which I think you reviewed ...
8 years ago (2012-12-18 18:15:14 UTC) #8
Eric Dingle
https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h File chrome/browser/extensions/blocked_actions.h (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h#newcode14 chrome/browser/extensions/blocked_actions.h:14: extern const char* blocked_table_name_; On 2012/12/15 02:51:52, felt wrote: ...
8 years ago (2012-12-18 21:55:34 UTC) #9
felt
https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h File chrome/browser/extensions/blocked_actions.h (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h#newcode14 chrome/browser/extensions/blocked_actions.h:14: extern const char* blocked_table_name_; On 2012/12/18 21:55:35, Eric Dingle ...
8 years ago (2012-12-18 23:28:53 UTC) #10
Eric Dingle
https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h File chrome/browser/extensions/blocked_actions.h (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h#newcode14 chrome/browser/extensions/blocked_actions.h:14: extern const char* blocked_table_name_; On 2012/12/18 23:28:54, felt wrote: ...
8 years ago (2012-12-19 16:04:11 UTC) #11
felt
Eric, made the changes. https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h File chrome/browser/extensions/blocked_actions.h (right): https://codereview.chromium.org/11421192/diff/30006/chrome/browser/extensions/blocked_actions.h#newcode14 chrome/browser/extensions/blocked_actions.h:14: extern const char* blocked_table_name_; On ...
8 years ago (2012-12-19 17:56:27 UTC) #12
Eric Dingle
LGTM https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_log_unittest.cc File chrome/browser/extensions/activity_log_unittest.cc (right): https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_log_unittest.cc#newcode70 chrome/browser/extensions/activity_log_unittest.cc:70: scoped_ptr<ListValue> args; scoped_ptr<ListValue> args(new ListValue());
8 years ago (2012-12-19 18:33:47 UTC) #13
Eric Dingle
I would suggest having someone on the extensions side review this before submitting.
8 years ago (2012-12-19 18:34:08 UTC) #14
felt
mpcomplete@ can you review this please? It's the continuation of Eric's work on the activity ...
8 years ago (2012-12-19 18:40:20 UTC) #15
felt
Pinging Matt since everyone's been on vacation
7 years, 11 months ago (2013-01-03 16:46:35 UTC) #16
Matt Perry
https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h File chrome/browser/extensions/activity_database.h (right): https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h#newcode33 chrome/browser/extensions/activity_database.h:33: void RecordUrlAction(scoped_refptr<UrlAction> action); It seems to me this would ...
7 years, 11 months ago (2013-01-03 20:53:34 UTC) #17
felt
https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h File chrome/browser/extensions/activity_database.h (right): https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h#newcode33 chrome/browser/extensions/activity_database.h:33: void RecordUrlAction(scoped_refptr<UrlAction> action); On 2013/01/03 20:53:35, Matt Perry wrote: ...
7 years, 11 months ago (2013-01-07 23:44:22 UTC) #18
Matt Perry
https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h File chrome/browser/extensions/activity_database.h (right): https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h#newcode33 chrome/browser/extensions/activity_database.h:33: void RecordUrlAction(scoped_refptr<UrlAction> action); On 2013/01/07 23:44:22, felt wrote: > ...
7 years, 11 months ago (2013-01-08 00:02:01 UTC) #19
felt
https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h File chrome/browser/extensions/activity_database.h (right): https://codereview.chromium.org/11421192/diff/76005/chrome/browser/extensions/activity_database.h#newcode33 chrome/browser/extensions/activity_database.h:33: void RecordUrlAction(scoped_refptr<UrlAction> action); On 2013/01/08 00:02:01, Matt Perry wrote: ...
7 years, 11 months ago (2013-01-08 06:38:51 UTC) #20
Matt Perry
lgtm
7 years, 11 months ago (2013-01-08 18:55:20 UTC) #21
felt
Looking for OWNERS approval: mirandac@chromium.org - chrome/browser/profiles arv@chromium.org - chrome/browser/ui/webui/extensions ben@chromium.org - chrome/common/chrome_constants.*
7 years, 11 months ago (2013-01-08 19:02:18 UTC) #22
Ben Goodger (Google)
chrome_constants lgtm
7 years, 11 months ago (2013-01-08 21:00:47 UTC) #23
Miranda Callahan
On 2013/01/08 21:00:47, Ben Goodger (Google) wrote: > chrome_constants lgtm profile_dependency_manager LGTM.
7 years, 11 months ago (2013-01-08 22:05:04 UTC) #24
felt
Pinging arv@ for OWNERS approval - chrome/browser/ui/webui/extensions
7 years, 11 months ago (2013-01-10 19:18:44 UTC) #25
felt
estade@chromium.org, could I get OWNERS approval for chrome/browser/ui/webui/extensions ? Trivial changes.
7 years, 11 months ago (2013-01-11 19:41:23 UTC) #26
Evan Stade
lgtm
7 years, 11 months ago (2013-01-11 20:28:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/130001
7 years, 11 months ago (2013-01-11 20:31:39 UTC) #28
commit-bot: I haz the power
Presubmit check for 11421192-130001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-11 20:31:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/130001
7 years, 11 months ago (2013-01-11 23:54:44 UTC) #30
commit-bot: I haz the power
Presubmit check for 11421192-130001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-11 23:54:56 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/145001
7 years, 11 months ago (2013-01-12 00:04:14 UTC) #32
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 11 months ago (2013-01-12 04:45:12 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/145001
7 years, 11 months ago (2013-01-12 16:51:04 UTC) #34
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 11 months ago (2013-01-12 21:23:24 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/145001
7 years, 11 months ago (2013-01-14 17:55:55 UTC) #36
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 11 months ago (2013-01-14 22:38:36 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/145007
7 years, 11 months ago (2013-01-15 00:29:27 UTC) #38
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 11 months ago (2013-01-15 05:18:16 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/183001
7 years, 11 months ago (2013-01-15 23:30:40 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/144074
7 years, 11 months ago (2013-01-16 20:08:23 UTC) #41
commit-bot: I haz the power
Change committed as 177235
7 years, 11 months ago (2013-01-16 22:39:21 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/11421192/207023
7 years, 11 months ago (2013-01-17 16:09:57 UTC) #43
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 17:53:20 UTC) #44
Message was sent while issue was closed.
Change committed as 177426

Powered by Google App Engine
This is Rietveld 408576698