Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 16061002: activityLogPrivate API: schema & events (Closed)

Created:
7 years, 7 months ago by felt
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, not at google - send to devlin, MAD, Ilya Sherman, jar (doing other things), chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

This implements half of the activityLogPrivate API. The API is only available to a single whitelisted extension. It includes the schema and events. It is missing the implementation of its function, which I'll add as a separate CL. BUG=241672 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204796

Patch Set 1 #

Patch Set 2 : Minor change to the schema #

Patch Set 3 : Removed old UI; added implementation for ExtensionActivity events; removed flags #

Patch Set 4 : Rebasing, separating out two other issues #

Total comments: 4

Patch Set 5 : Removed IsLoggingEnabled changes; will make new CL for those changes #

Patch Set 6 : Removed a few more things for the LogIsEnabled cl #

Patch Set 7 : Fixed some errors caused by repeat rebasing #

Patch Set 8 : Fixed errors caused by repeat rebasing #

Patch Set 9 : Added tests #

Patch Set 10 : Self-review #

Patch Set 11 : Small fix #

Patch Set 12 : Removing a file from the patchset #

Total comments: 16

Patch Set 13 : Rebase only #

Patch Set 14 : Made changes for Matt #

Patch Set 15 : Made small changes for unit test #

Patch Set 16 : Changes to ActivityLogAPI for unit testing #

Patch Set 17 : Another change for trybot failures #

Patch Set 18 : Added new permission exclusion to permission_set_unittest.cc #

Patch Set 19 : Fix name collision with windows headers #

Total comments: 2

Patch Set 20 : Rebased, made a huge mess #

Patch Set 21 : Fixing rebase disaster #

Patch Set 22 : Rebasing goes a lot better when you do it from the right branch... #

Patch Set 23 : Removed docs; changed Convert method to return scoped_ptr; fixed gypi file #

Patch Set 24 : Another gypi change for Android #

Patch Set 25 : More gypi tweaks for Android #

Patch Set 26 : Typo in a copyright line caused presubmit failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -82 lines) Patch
M chrome/browser/extensions/activity_log/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 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_actions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 20 21 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 4 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 20 21 4 chunks +6 lines, -6 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 16 17 18 19 20 21 22 15 chunks +25 lines, -33 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 5 chunks +28 lines, -5 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/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 5 chunks +30 lines, -5 lines 0 comments Download
M chrome/browser/extensions/activity_log/dom_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 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/dom_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 5 chunks +34 lines, -9 lines 0 comments Download
A chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/activity_log_private/activity_log_private_api_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 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc View 1 2 3 4 5 6 7 8 20 21 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 2 chunks +2 lines, -0 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 2 chunks +4 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 14 15 16 17 18 19 20 21 1 chunk +1 line, -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 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/activity_log_private.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 1 chunk +125 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/activity_log_private/friend/manifest.json View 1 2 3 4 5 6 7 8 20 21 1 chunk +10 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/activity_log_private/friend/reply.js View 1 2 3 4 5 6 7 8 20 21 1 chunk +5 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/activity_log_private/test/manifest.json View 1 2 3 4 5 6 7 8 20 21 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/activity_log_private/test/test.js View 1 2 3 4 5 6 7 8 20 21 1 chunk +22 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
felt
Hi Matt & Ben, The implementation isn't finished yet, but the schema & docs are ...
7 years, 7 months ago (2013-05-26 23:10:27 UTC) #1
Matt Perry
Can I ask you to break this CL up into 3 parts? The bugfix, removing ...
7 years, 6 months ago (2013-05-28 19:00:37 UTC) #2
felt
Sure. I will break it up into two: removing the old UI, and adding the ...
7 years, 6 months ago (2013-05-28 20:16:05 UTC) #3
mvrable
I've only looked at a few of the files so far, but have a few ...
7 years, 6 months ago (2013-05-31 18:55:23 UTC) #4
felt
On 2013/05/31 18:55:23, mvrable wrote: > I've only looked at a few of the files ...
7 years, 6 months ago (2013-05-31 20:48:36 UTC) #5
mvrable
On 2013/05/31 18:55:23, mvrable wrote: > I'll read through the rest and send any additional ...
7 years, 6 months ago (2013-06-01 00:15:45 UTC) #6
felt
Hi Matt, Can you please review this CL? It includes: - the schema for the ...
7 years, 6 months ago (2013-06-05 00:38:39 UTC) #7
felt
Hi Ilya, Adding you as a TBR reviewer, but sending this in case you want ...
7 years, 6 months ago (2013-06-05 00:41:24 UTC) #8
Matt Perry
https://codereview.chromium.org/16061002/diff/66001/chrome/browser/extensions/activity_log/activity_actions.h File chrome/browser/extensions/activity_log/activity_actions.h (right): https://codereview.chromium.org/16061002/diff/66001/chrome/browser/extensions/activity_log/activity_actions.h#newcode32 chrome/browser/extensions/activity_log/activity_actions.h:32: virtual std::map<std::string, std::string> GetFieldsAsMap() = 0; Why not have ...
7 years, 6 months ago (2013-06-05 01:24:47 UTC) #9
felt
Hi Matt, made changes as requested. https://chromiumcodereview.appspot.com/16061002/diff/66001/chrome/browser/extensions/activity_log/activity_actions.h File chrome/browser/extensions/activity_log/activity_actions.h (right): https://chromiumcodereview.appspot.com/16061002/diff/66001/chrome/browser/extensions/activity_log/activity_actions.h#newcode32 chrome/browser/extensions/activity_log/activity_actions.h:32: virtual std::map<std::string, std::string> ...
7 years, 6 months ago (2013-06-05 06:04:59 UTC) #10
Ilya Sherman
histograms.xml LGTM
7 years, 6 months ago (2013-06-05 09:05:25 UTC) #11
felt
I uploaded a new patchset that makes a change to the ActivityLogAPI constructor and destructor. ...
7 years, 6 months ago (2013-06-05 18:59:16 UTC) #12
felt
Hi Miranda, Can you please review the 2-line change to chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc? Thanks, Adrienne
7 years, 6 months ago (2013-06-06 00:30:42 UTC) #13
Miranda Callahan
On 2013/06/06 00:30:42, felt wrote: > Hi Miranda, > > Can you please review the ...
7 years, 6 months ago (2013-06-06 12:11:56 UTC) #14
Matt Perry
lgtm https://chromiumcodereview.appspot.com/16061002/diff/103001/chrome/browser/extensions/activity_log/activity_actions.h File chrome/browser/extensions/activity_log/activity_actions.h (right): https://chromiumcodereview.appspot.com/16061002/diff/103001/chrome/browser/extensions/activity_log/activity_actions.h#newcode32 chrome/browser/extensions/activity_log/activity_actions.h:32: virtual api::activity_log_private::ExtensionActivity* Consider returning a scoped_ptr to make ...
7 years, 6 months ago (2013-06-06 21:06:47 UTC) #15
felt
Thanks! Made the changes, and removed the documentation since it is a private API. https://chromiumcodereview.appspot.com/16061002/diff/103001/chrome/browser/extensions/activity_log/activity_actions.h ...
7 years, 6 months ago (2013-06-07 04:49:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16061002/154001
7 years, 6 months ago (2013-06-07 06:54:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16061002/163001
7 years, 6 months ago (2013-06-07 07:03:42 UTC) #18
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-07 07:21:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16061002/163001
7 years, 6 months ago (2013-06-07 07:37:18 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 12:51:22 UTC) #21
Message was sent while issue was closed.
Change committed as 204796

Powered by Google App Engine
This is Rietveld 408576698