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

Issue 13726026: Added ActivityLog tests and associated bugfixes/extra logging. (Closed)

Created:
7 years, 8 months ago by felt
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, Ankur Taly, Eric Dingle
Visibility:
Public.

Description

This tackles a number of ActivityLog-related corner cases. I wrote tests and then added fixes as needed. 1) Added test for chrome.app.* API calls 2) Added missing logging for chrome.app.* API calls 3) Removed event listener registration logging; added TODO 4) Added test for operations on objects returned from API calls 5) Added message passing tests 6) Added missing logging for message passing BUG=229703 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194034

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Added message passing test and logging #

Total comments: 14

Patch Set 4 : Removed unneeded if statement branch #

Total comments: 1

Patch Set 5 : Fixes for Matt's comments #

Patch Set 6 : Reverted two changes #

Total comments: 6

Patch Set 7 : Refactored to remove strings from IPC #

Total comments: 10

Patch Set 8 : Fixed nits for Chris and Matt #

Patch Set 9 : Renamed enum #

Patch Set 10 : Wrapped line #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -51 lines) Patch
M chrome/browser/extensions/activity_log.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/activity_log.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 2 3 4 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 6 chunks +30 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.h View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -5 lines 3 comments Download
M chrome/renderer/extensions/api_activity_logger.cc View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -9 lines 0 comments Download
M chrome/renderer/resources/extensions/app_custom_bindings.js View 1 2 3 4 5 6 3 chunks +39 lines, -8 lines 0 comments Download
M chrome/renderer/resources/extensions/binding.js View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/miscellaneous_bindings.js View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/activity_log/manifest.json View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/activity_log/options.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/activity_log/options.js View 1 2 3 4 5 6 3 chunks +74 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/activity_log_app/background.js View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
felt
Hi Matt, I added some new tests and added/removed logging in a few places. Could ...
7 years, 8 months ago (2013-04-09 01:50:04 UTC) #1
Matt Perry
Please add a BUG number to the CL description. Also, put a general summary of ...
7 years, 8 months ago (2013-04-09 20:56:59 UTC) #2
felt
Hi Matt, thanks! A few questions for clarification: > Please add a BUG number to ...
7 years, 8 months ago (2013-04-09 21:06:59 UTC) #3
Matt Perry
On 2013/04/09 21:06:59, felt wrote: > Hi Matt, thanks! A few questions for clarification: > ...
7 years, 8 months ago (2013-04-09 21:17:34 UTC) #4
felt
Matt, made most of the changes. I'm a little confused about the prototype poisoning issue. ...
7 years, 8 months ago (2013-04-10 00:21:38 UTC) #5
Matt Perry
On 2013/04/10 00:21:38, felt wrote: > Matt, made most of the changes. I'm a little ...
7 years, 8 months ago (2013-04-10 00:26:21 UTC) #6
felt
Chris & Justin, You previously gave me some feedback on the new IPC for Activity ...
7 years, 8 months ago (2013-04-10 00:27:01 UTC) #7
felt
Sorry, it's there now -- I'd been writing the other e-mail simultaneously. On 2013/04/10 00:26:21, ...
7 years, 8 months ago (2013-04-10 00:33:11 UTC) #8
felt
Matt: I removed the Array.slice stuff for now. Separately, Ankur is going to take a ...
7 years, 8 months ago (2013-04-10 22:25:04 UTC) #9
palmer
On 2013/04/10 00:27:01, felt wrote: > Chris & Justin, > > You previously gave me ...
7 years, 8 months ago (2013-04-10 22:46:38 UTC) #10
Matt Perry
https://codereview.chromium.org/13726026/diff/10001/chrome/renderer/resources/extensions/miscellaneous_bindings.js File chrome/renderer/resources/extensions/miscellaneous_bindings.js (right): https://codereview.chromium.org/13726026/diff/10001/chrome/renderer/resources/extensions/miscellaneous_bindings.js#newcode180 chrome/renderer/resources/extensions/miscellaneous_bindings.js:180: var eventName = (isSendMessage ? On 2013/04/10 22:25:04, felt ...
7 years, 8 months ago (2013-04-10 22:48:05 UTC) #11
palmer
https://codereview.chromium.org/13726026/diff/41001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/13726026/diff/41001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode83 chrome/browser/renderer_host/chrome_render_message_filter.cc:83: if (call_type == "API") Hmm, how open-ended are these ...
7 years, 8 months ago (2013-04-10 23:52:48 UTC) #12
felt
I refactored all of the code that sends a record of an api call/event from ...
7 years, 8 months ago (2013-04-11 20:56:57 UTC) #13
palmer
IPC security LGTM https://codereview.chromium.org/13726026/diff/53001/chrome/browser/extensions/activity_log.cc File chrome/browser/extensions/activity_log.cc (right): https://codereview.chromium.org/13726026/diff/53001/chrome/browser/extensions/activity_log.cc#newcode153 chrome/browser/extensions/activity_log.cc:153: testing_mode_ = CommandLine::ForCurrentProcess()-> NIT: Fine by ...
7 years, 8 months ago (2013-04-11 21:53:39 UTC) #14
Matt Perry
lgtm https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.cc File chrome/renderer/extensions/api_activity_logger.cc (right): https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.cc#newcode65 chrome/renderer/extensions/api_activity_logger.cc:65: if (call_type == kApiCall) nit: use braces for ...
7 years, 8 months ago (2013-04-12 01:03:17 UTC) #15
felt
Hi Brett, can I please get OWNERS approval for chrome/browser/renderer_host/chrome_render_message_filter.[cc|h]? (Finished Matt and Chris's last ...
7 years, 8 months ago (2013-04-12 02:07:21 UTC) #16
Matt Perry
https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.h#newcode41 chrome/renderer/extensions/api_activity_logger.h:41: kEvent On 2013/04/12 02:07:21, felt wrote: > On 2013/04/12 ...
7 years, 8 months ago (2013-04-12 17:04:43 UTC) #17
brettw
lgtm
7 years, 8 months ago (2013-04-12 18:14:22 UTC) #18
felt
https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/13726026/diff/53001/chrome/renderer/extensions/api_activity_logger.h#newcode41 chrome/renderer/extensions/api_activity_logger.h:41: kEvent Ah, thanks! On 2013/04/12 17:04:43, Matt Perry wrote: ...
7 years, 8 months ago (2013-04-12 20:37:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/13726026/37002
7 years, 8 months ago (2013-04-12 20:38:16 UTC) #20
commit-bot: I haz the power
Presubmit check for 13726026-37002 failed and returned exit status 1. INFO:root:Found 15 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-12 20:38:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/13726026/78001
7 years, 8 months ago (2013-04-12 20:41:33 UTC) #22
Matt Perry
https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h#newcode40 chrome/renderer/extensions/api_activity_logger.h:40: APICALL, nit: API_CALL
7 years, 8 months ago (2013-04-12 20:50:33 UTC) #23
felt
https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h#newcode40 chrome/renderer/extensions/api_activity_logger.h:40: APICALL, I get a compiler error if I do ...
7 years, 8 months ago (2013-04-12 20:51:46 UTC) #24
Matt Perry
https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/13726026/diff/78001/chrome/renderer/extensions/api_activity_logger.h#newcode40 chrome/renderer/extensions/api_activity_logger.h:40: APICALL, Oh weird. Nah, this is fine. On 2013/04/12 ...
7 years, 8 months ago (2013-04-12 20:53:51 UTC) #25
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 22:56:45 UTC) #26
Message was sent while issue was closed.
Change committed as 194034

Powered by Google App Engine
This is Rietveld 408576698