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

Issue 2962093002: [Extensions Bindings] Add activity logging of custom handling (Closed)

Created:
3 years, 5 months ago by Devlin
Modified:
3 years, 5 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Add activity logging of custom handling If a method is handled by a custom hook, we won't notify the browser (where we normally would with an API request), and so the activity log won't be updated. Add support for activity logging with native binding. If a request is handled by a custom hook and a request is not sent to the browser, notify the activity logger (which will send the information along to the browser process). This matches the logic we currently have in the JS bindings. Add unit tests for the same. In addition to the unit tests, this fixes ActivityLogApiTest.TriggerEvent with native bindings enabled. BUG=653596 Review-Url: https://codereview.chromium.org/2962093002 Cr-Commit-Position: refs/heads/master@{#485457} Committed: https://chromium.googlesource.com/chromium/src/+/7ab1596cf4cde44bfc15f6ba2c74f694f130b608

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 5

Patch Set 4 : jbroman's #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : nits #

Patch Set 7 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -60 lines) Patch
M chrome/renderer/extensions/app_hooks_delegate.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/activity_log_private/test/test.js View 1 2 3 4 5 6 2 chunks +10 lines, -4 lines 0 comments Download
M extensions/renderer/api_activity_logger.h View 1 2 chunks +23 lines, -15 lines 0 comments Download
M extensions/renderer/api_activity_logger.cc View 1 2 3 4 chunks +64 lines, -32 lines 0 comments Download
M extensions/renderer/bindings/api_binding.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_binding.cc View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_binding_unittest.cc View 1 2 3 4 5 7 chunks +199 lines, -2 lines 0 comments Download
M extensions/renderer/bindings/api_bindings_system.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_bindings_system.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M extensions/renderer/bindings/api_bindings_system_unittest.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_request_handler.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_request_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/native_extension_bindings_system.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/renderer/native_extension_bindings_system_unittest.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
Devlin
3 years, 5 months ago (2017-06-30 00:49:55 UTC) #11
Devlin
We're on the last bits, folks! Just a few more failing tests.
3 years, 5 months ago (2017-06-30 00:50:12 UTC) #12
jbroman
Some high-level thoughts. https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc File extensions/renderer/api_activity_logger.cc (right): https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc#newcode55 extensions/renderer/api_activity_logger.cc:55: value_args->Append(converter->FromV8Value(arg, context)); How important is it ...
3 years, 5 months ago (2017-06-30 19:05:48 UTC) #13
Devlin
https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc File extensions/renderer/api_activity_logger.cc (right): https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc#newcode55 extensions/renderer/api_activity_logger.cc:55: value_args->Append(converter->FromV8Value(arg, context)); On 2017/06/30 19:05:48, jbroman wrote: > How ...
3 years, 5 months ago (2017-07-06 17:09:57 UTC) #17
jbroman
lgtm https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc File extensions/renderer/api_activity_logger.cc (right): https://codereview.chromium.org/2962093002/diff/40001/extensions/renderer/api_activity_logger.cc#newcode55 extensions/renderer/api_activity_logger.cc:55: value_args->Append(converter->FromV8Value(arg, context)); On 2017/07/06 at 17:09:57, Devlin wrote: ...
3 years, 5 months ago (2017-07-06 20:48:45 UTC) #21
lazyboy
lgtm https://codereview.chromium.org/2962093002/diff/80001/chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py File chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py (right): https://codereview.chromium.org/2962093002/diff/80001/chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py#newcode18 chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py:18: 'tools') What is this change?
3 years, 5 months ago (2017-07-07 23:54:58 UTC) #22
Devlin
https://codereview.chromium.org/2962093002/diff/80001/chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py File chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py (right): https://codereview.chromium.org/2962093002/diff/80001/chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py#newcode18 chrome/test/data/extensions/api_test/activity_log_private/PRESUBMIT.py:18: 'tools') On 2017/07/07 23:54:58, lazyboy wrote: > What is ...
3 years, 5 months ago (2017-07-10 22:28:03 UTC) #25
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/2962093002/120001
3 years, 5 months ago (2017-07-10 22:28:41 UTC) #29
commit-bot: I haz the power
3 years, 5 months ago (2017-07-11 00:17:55 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/7ab1596cf4cde44bfc15f6ba2c74...

Powered by Google App Engine
This is Rietveld 408576698