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

Issue 18769009: [Activity Log] fix logging of blocked API calls (Closed)

Created:
7 years, 5 months ago by felt
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

[Activity Log] fix logging of blocked API calls Recent refactoring of how extension permissions are checked (now using Features) broke the logging of blocked API calls. This CL tries to restore the logging. BUG=259118 R=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211595

Patch Set 1 #

Patch Set 2 : Removed a logging statement #

Total comments: 11

Patch Set 3 : Moved the reason check to a central place #

Patch Set 4 : Probably helps to spell things correctly #

Total comments: 4

Patch Set 5 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -27 lines) Patch
M chrome/renderer/extensions/api_activity_logger.h View 1 2 3 4 3 chunks +25 lines, -18 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.cc View 1 2 3 3 chunks +28 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 1 2 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/renderer/resources/extensions/binding.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
felt
Hi Ben, Some recent refactoring accidentally squashed my logging of blocked API calls. It used ...
7 years, 5 months ago (2013-07-11 19:13:51 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/api_activity_logger.cc File chrome/renderer/extensions/api_activity_logger.cc (right): https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/api_activity_logger.cc#newcode45 chrome/renderer/extensions/api_activity_logger.cc:45: *v8::String::AsciiValue(args[1]->ToString())); you actually don't need the ToString() here. AsciiValue ...
7 years, 5 months ago (2013-07-11 19:22:33 UTC) #2
felt
One quick question before I make edits https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/runtime_custom_bindings.cc File chrome/renderer/extensions/runtime_custom_bindings.cc (right): https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/runtime_custom_bindings.cc#newcode74 chrome/renderer/extensions/runtime_custom_bindings.cc:74: "nativeMessaging"); Sorry, ...
7 years, 5 months ago (2013-07-11 19:26:37 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/runtime_custom_bindings.cc File chrome/renderer/extensions/runtime_custom_bindings.cc (right): https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/runtime_custom_bindings.cc#newcode74 chrome/renderer/extensions/runtime_custom_bindings.cc:74: "nativeMessaging"); On 2013/07/11 19:26:37, felt wrote: > Sorry, not ...
7 years, 5 months ago (2013-07-11 19:28:02 UTC) #4
felt
https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/api_activity_logger.cc File chrome/renderer/extensions/api_activity_logger.cc (right): https://codereview.chromium.org/18769009/diff/2001/chrome/renderer/extensions/api_activity_logger.cc#newcode45 chrome/renderer/extensions/api_activity_logger.cc:45: *v8::String::AsciiValue(args[1]->ToString())); On 2013/07/11 19:22:33, kalman wrote: > you actually ...
7 years, 5 months ago (2013-07-12 01:53:04 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/18769009/diff/14001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/18769009/diff/14001/chrome/renderer/extensions/api_activity_logger.h#newcode42 chrome/renderer/extensions/api_activity_logger.h:42: const v8::FunctionCallbackInfo<v8::Value>& args); unrelated comment: do these v8-exposed ...
7 years, 5 months ago (2013-07-12 15:53:06 UTC) #6
felt
thanks for the help! https://codereview.chromium.org/18769009/diff/14001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/18769009/diff/14001/chrome/renderer/extensions/api_activity_logger.h#newcode42 chrome/renderer/extensions/api_activity_logger.h:42: const v8::FunctionCallbackInfo<v8::Value>& args); On 2013/07/12 ...
7 years, 5 months ago (2013-07-13 04:38:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/18769009/25001
7 years, 5 months ago (2013-07-14 01:19:23 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-14 08:18:24 UTC) #9
Message was sent while issue was closed.
Change committed as 211595

Powered by Google App Engine
This is Rietveld 408576698