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 #Messages
Total messages: 32 (23 generated)
|