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

Issue 12491012: Improved extension activity logging for the chrome.webRequest API. (Closed)

Created:
7 years, 9 months ago by mvrable
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Improved extension activity logging for the chrome.webRequest API. Add a new type of log item in the activitylog_urls table: WEBREQUEST, used to summarize the changes made to an HTTP request using the blocking WebRequest extension API. The types of modifications made are always logged when the extension activity log is enabled; the details of the modification are only kept if the activity log testing flag is enabled (as the details may contain sensitive data). BUG=169628 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195596

Patch Set 1 #

Patch Set 2 : Direct WebRequest logging to the activitylog_urls table #

Patch Set 3 : Improve logging coverage #

Patch Set 4 : Strip WebRequest details unless the activity log testing flag is set #

Patch Set 5 : Include file cleanup #

Patch Set 6 : Support binary header values #

Total comments: 4

Patch Set 7 : Simplify code #

Total comments: 5

Patch Set 8 : Add activity log enabled check, and create constants for fields in the activity log #

Total comments: 3

Patch Set 9 : Relocate files #

Patch Set 10 : Update for SVN r194034 #

Patch Set 11 : Rebase #

Patch Set 12 : Fix a memory leak in unit tests #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -7 lines) Patch
M chrome/browser/extensions/activity_log.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/extensions/activity_log_web_request_constants.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/extensions/activity_log_web_request_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +166 lines, -2 lines 0 comments Download
M chrome/browser/extensions/dom_actions.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/dom_actions.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/activity_log/options.js View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
mvrable
This is an update to some of the extension activity log code to improve our ...
7 years, 8 months ago (2013-04-11 19:02:26 UTC) #1
felt
https://codereview.chromium.org/12491012/diff/16001/chrome/browser/extensions/activity_log.cc File chrome/browser/extensions/activity_log.cc (right): https://codereview.chromium.org/12491012/diff/16001/chrome/browser/extensions/activity_log.cc#newcode368 chrome/browser/extensions/activity_log.cc:368: if (!log_arguments_) { just a heads up: if issue ...
7 years, 8 months ago (2013-04-11 21:13:37 UTC) #2
mvrable
One small update to the code (based on Adrienne's comments), and a question of my ...
7 years, 8 months ago (2013-04-11 21:41:26 UTC) #3
felt
https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode1482 chrome/browser/extensions/api/web_request/web_request_api.cc:1482: details->SetBoolean("cancel", true); You could consider adding a helper method ...
7 years, 8 months ago (2013-04-11 21:43:28 UTC) #4
Matt Perry
https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode1592 chrome/browser/extensions/api/web_request/web_request_api.cc:1592: SummarizeResponseDelta(event_name, *delta)); This looks somewhat expensive. Ideally we wouldn't ...
7 years, 8 months ago (2013-04-12 00:53:43 UTC) #5
mvrable
https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/12491012/diff/23001/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode1482 chrome/browser/extensions/api/web_request/web_request_api.cc:1482: details->SetBoolean("cancel", true); On 2013/04/11 21:43:28, felt wrote: > You ...
7 years, 8 months ago (2013-04-12 18:50:49 UTC) #6
Matt Perry
LGTM except for comment below https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h File chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h (right): https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h#newcode1 chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h:1: // Copyright (c) 2013 ...
7 years, 8 months ago (2013-04-12 19:09:18 UTC) #7
mvrable
https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h File chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h (right): https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h#newcode1 chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 8 months ago (2013-04-12 19:54:20 UTC) #8
Matt Perry
lgtm https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h File chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h (right): https://codereview.chromium.org/12491012/diff/30001/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h#newcode1 chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h:1: // Copyright (c) 2013 The Chromium Authors. All ...
7 years, 8 months ago (2013-04-12 19:55:55 UTC) #9
mvrable
brettw, I added two files as part of some extension activity log work. felt@ and ...
7 years, 8 months ago (2013-04-12 20:06:37 UTC) #10
mvrable
I made one very minor change: updated the code for a member variable that was ...
7 years, 8 months ago (2013-04-15 19:10:08 UTC) #11
felt
lgtm On 2013/04/15 19:10:08, mvrable wrote: > I made one very minor change: updated the ...
7 years, 8 months ago (2013-04-15 19:12:59 UTC) #12
mvrable
Ben, This patch is ready to be submitted, except for a review for a two-line ...
7 years, 8 months ago (2013-04-18 18:35:32 UTC) #13
Ben Goodger (Google)
lgtm
7 years, 8 months ago (2013-04-19 16:15:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/38001
7 years, 8 months ago (2013-04-19 16:44:26 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-19 16:46:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/38001
7 years, 8 months ago (2013-04-19 17:03:11 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-19 17:09:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/49003
7 years, 8 months ago (2013-04-19 17:58:24 UTC) #19
commit-bot: I haz the power
Change committed as 195265
7 years, 8 months ago (2013-04-19 20:34:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/62001
7 years, 8 months ago (2013-04-19 22:24:49 UTC) #21
mvrable
Change was reverted due to a memory leak; updating and resubmitting.
7 years, 8 months ago (2013-04-19 22:27:09 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 23:08:01 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/62001
7 years, 8 months ago (2013-04-19 23:12:02 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=8596
7 years, 8 months ago (2013-04-20 02:06:35 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/78001
7 years, 8 months ago (2013-04-20 18:49:16 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 19:01:19 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/78001
7 years, 8 months ago (2013-04-20 20:38:02 UTC) #28
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 20:46:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/12491012/78001
7 years, 8 months ago (2013-04-22 17:00:22 UTC) #30
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 21:16:29 UTC) #31
Message was sent while issue was closed.
Change committed as 195596

Powered by Google App Engine
This is Rietveld 408576698