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

Issue 12390076: Attaching a DOM Activity Logger to all extension scripts (Closed)

Created:
7 years, 9 months ago by Ankur Taly
Modified:
7 years, 9 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Eric Dingle, felt, mvrable, ulfar
Visibility:
Public.

Description

Attaching a DOM Activity Logger to all extension scripts Adds a mechanism for attaching (using the WebKit API) a DOMActivityLogger to each world that is executing extension scripts. (This would include the main world in the case of an extension background page.) A logger is only attached if extension activity logging is enabled and if there does not already exist a logger attached to the world. Each logger object has a log method that marshalls it's arguments and sends them over to the extension activity log on the browser side. A HashMap in WebCore owns the logger objects. Currently the loggers are not invoked, a later WebCore patch will appropriately configure the DOM bindings for each world so that they invoke the corresponding logger object on every access. BUG=160987, 160989 TBR=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186845

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -5 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
A chrome/renderer/extensions/dom_activity_logger.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/dom_activity_logger.cc View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/user_script_scheduler.cc View 1 2 3 4 5 6 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/user_script_slave.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Matt Perry
https://codereview.chromium.org/12390076/diff/1/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/12390076/diff/1/chrome/renderer/extensions/dispatcher.cc#newcode919 chrome/renderer/extensions/dispatcher.cc:919: // DOMActivity loggers for an extension background page get ...
7 years, 9 months ago (2013-03-05 02:32:37 UTC) #1
Ankur Taly
Hi Matt, Thanks a lot for the feedback. To address some of the comments below, ...
7 years, 9 months ago (2013-03-05 20:03:31 UTC) #2
Matt Perry
https://codereview.chromium.org/12390076/diff/1/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/12390076/diff/1/chrome/renderer/extensions/dispatcher.cc#newcode919 chrome/renderer/extensions/dispatcher.cc:919: // DOMActivity loggers for an extension background page get ...
7 years, 9 months ago (2013-03-05 20:34:22 UTC) #3
Ankur Taly
Hi Matt, The WebKit patch got committed, it will become part of the chrome tree ...
7 years, 9 months ago (2013-03-07 01:03:39 UTC) #4
Matt Perry
lgtm https://codereview.chromium.org/12390076/diff/21001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/12390076/diff/21001/chrome/renderer/extensions/dispatcher.cc#newcode716 chrome/renderer/extensions/dispatcher.cc:716: lazy_bindings_map_["webactivitystore"] = InstallWebstoreBindings; ?
7 years, 9 months ago (2013-03-07 01:06:26 UTC) #5
Ankur Taly
Oops that was unintended. I fixed that. I will send this to the commit queue ...
7 years, 9 months ago (2013-03-07 01:50:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ataly@chromium.org/12390076/28003
7 years, 9 months ago (2013-03-07 20:11:08 UTC) #7
commit-bot: I haz the power
Presubmit check for 12390076-28003 failed and returned exit status 1. INFO:root:Found 6 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-07 20:11:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ataly@chromium.org/12390076/28003
7 years, 9 months ago (2013-03-07 20:30:57 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-08 01:57:53 UTC) #10
Message was sent while issue was closed.
Change committed as 186845

Powered by Google App Engine
This is Rietveld 408576698