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

Issue 2089333002: [Extensions] Add renderer-side logic to short circuit activity logging (Closed)

Created:
4 years, 6 months ago by Devlin
Modified:
4 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, felt, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Add renderer-side logic to short circuit activity logging Revision a84983c58d89dbb83fc97eb24ad70f5780375dd9 added logic to short- circuit activity logging on the browser side so that we don't log anything if the user doesn't have an activity-logging extension enabled. This patch adds logic to the renderer side to avoid adding the DOMActivityLoggers and APIActivityLoggers that would generate additional IPCs sent to the browser, in addition to requiring each DOM modification in the given world to be logged. Now, each of these is only logged in the case of the user having an active activity-logging extension. BUG=620359 Committed: https://crrev.com/6fba7ec7467f6f6b3a48636a6006425b5f748f5a Cr-Commit-Position: refs/heads/master@{#401868}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Antony's #

Total comments: 2

Patch Set 3 : Guard adding dom activity loggers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -55 lines) Patch
M chrome/browser/extensions/activity_log/activity_log.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/extensions_browser_client.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/renderer_startup_helper.cc View 1 chunk +11 lines, -2 lines 0 comments Download
M extensions/common/extension_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/renderer/api_activity_logger.h View 2 chunks +9 lines, -5 lines 0 comments Download
M extensions/renderer/api_activity_logger.cc View 2 chunks +13 lines, -4 lines 0 comments Download
M extensions/renderer/dispatcher.h View 3 chunks +6 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 5 chunks +20 lines, -5 lines 0 comments Download
M extensions/renderer/script_injection.h View 2 chunks +5 lines, -1 line 0 comments Download
M extensions/renderer/script_injection.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M extensions/renderer/script_injection_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/renderer/script_injection_manager.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M extensions/renderer/scripts_run_info.h View 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/renderer/scripts_run_info.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/user_script_set.h View 2 chunks +6 lines, -3 lines 0 comments Download
M extensions/renderer/user_script_set.cc View 4 chunks +14 lines, -14 lines 0 comments Download
M extensions/renderer/user_script_set_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/renderer/user_script_set_manager.cc View 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Devlin
Renderer side!
4 years, 6 months ago (2016-06-22 21:27:45 UTC) #2
asargent_no_longer_on_chrome
https://codereview.chromium.org/2089333002/diff/1/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (right): https://codereview.chromium.org/2089333002/diff/1/chrome/browser/extensions/activity_log/activity_log.h#newcode121 chrome/browser/extensions/activity_log/activity_log.h:121: bool is_active() const { return is_active_; } nit: this ...
4 years, 6 months ago (2016-06-23 13:35:56 UTC) #3
Devlin
https://codereview.chromium.org/2089333002/diff/1/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (right): https://codereview.chromium.org/2089333002/diff/1/chrome/browser/extensions/activity_log/activity_log.h#newcode121 chrome/browser/extensions/activity_log/activity_log.h:121: bool is_active() const { return is_active_; } On 2016/06/23 ...
4 years, 6 months ago (2016-06-23 16:59:02 UTC) #4
asargent_no_longer_on_chrome
lgtm w/ one question https://codereview.chromium.org/2089333002/diff/20001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/2089333002/diff/20001/extensions/renderer/dispatcher.cc#newcode1266 extensions/renderer/dispatcher.cc:1266: DOMActivityLogger::AttachToWorld(DOMActivityLogger::kMainWorldId, id); Shouldn't you only ...
4 years, 6 months ago (2016-06-23 21:07:04 UTC) #5
Devlin
https://codereview.chromium.org/2089333002/diff/20001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/2089333002/diff/20001/extensions/renderer/dispatcher.cc#newcode1266 extensions/renderer/dispatcher.cc:1266: DOMActivityLogger::AttachToWorld(DOMActivityLogger::kMainWorldId, id); On 2016/06/23 21:07:03, Antony Sargent wrote: > ...
4 years, 6 months ago (2016-06-24 01:13:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089333002/40001
4 years, 6 months ago (2016-06-24 01:14:38 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/206416)
4 years, 6 months ago (2016-06-24 01:24:41 UTC) #11
Devlin
+dcheng for extension_messages.h
4 years, 6 months ago (2016-06-24 01:26:15 UTC) #13
dcheng
ipc lgtm
4 years, 6 months ago (2016-06-24 08:00:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089333002/40001
4 years, 6 months ago (2016-06-24 15:04:02 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-24 16:15:22 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 16:17:14 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6fba7ec7467f6f6b3a48636a6006425b5f748f5a
Cr-Commit-Position: refs/heads/master@{#401868}

Powered by Google App Engine
This is Rietveld 408576698