0
Commit Graph

8 Commits

Author SHA1 Message Date
Anton Bershanskyi
c4788007ef [Extensions] Switch to ExtensionId (part 3)
Use a separate type ExtensionId for denoting Chromium Extension Id.

Bug: 1518483
Change-Id: I972d28c008661ffe8ac40a20ce22c6898a090564
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5245428
Commit-Queue: Tim <tjudkins@chromium.org>
Reviewed-by: Tim <tjudkins@chromium.org>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1255675}
2024-02-02 18:46:43 +00:00
Roman Sorokin
80375e0474 [Code Health] Migrate to base::Value::Dict in ...
... chrome/browser/extensions/activity_log/activity_log.cc

Also change related parts in extensions/browser/api*

Bug: 1366865, 1187061
Change-Id: Id31555b59cf170996b471125896550ce2f359ca5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3963094
Auto-Submit: Roman Sorokin <rsorokin@google.com>
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1062370}
2022-10-21 21:59:53 +00:00
Avi Drissman
60039d4d4b Update copyright headers in extensions/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
Bug: 1098010
Change-Id: I92587d82572fb164300a4165a153102982a277dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3894332
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046592}
2022-09-13 21:49:05 +00:00
Matt Menke
15c12a71f3 Switch extensions.mojom.RequestParams.arguments to mojom::ListValue.
It was using DeprecatedListValue, which maps to the (also deprecated)
base::ListValue. Somewhat confusingly, mojom::ListValue maps to the
(non-deprecated) base::Value::List class.

Bug: 1301889
Change-Id: Ia00f736d9712b776c1e42a0056be5759bef9ff1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3685637
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: Finnur Thorarinsson <finnur@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1010284}
2022-06-02 21:15:50 +00:00
Yoichi Osato
d0e00db424 [CodeHealth] Migrate base::ListValue in event_dispatcher.mojom
DeprecatedListValue is being replaced with ListValue.
This CL replaces the uses of DeprecatedListValue in
EventDispatcher::DispatchEvent in a extensions mojom.

Bug: 1301889
Change-Id: I5d169070921543045d9b614b5e823809e52fe04e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3578257
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Auto-Submit: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#992348}
2022-04-14 01:37:38 +00:00
rdevlin.cronin
a84983c58d [Extensions] Short-circuit activity logging if not enabled
In order to log activity events in extensions, we need to copy all the
arguments that were passed to the method or event. In some cases (such
as messaging), this can be an extreme amount of work. Additionally, this
can require passing objects from the IO to UI thread. In an extreme
case, we would also create copies of arguments sent via the activityLog
API itself - meaning that for any given API call, we created two extra
copies of all arguments (one for the activity log itself, and another
for the record of the activityLog event dispatch). In some cases, this
activity logging resulted in more work than the API call itself.

Instead, store state around which profiles have an actively-recording
ActivityLog and which extensions are whitelisted in a thread-safe manner
so that we can short-circuit the logging in most cases, and avoid
creating excessive copies for the 99% case.

BUG=620359

Review-Url: https://codereview.chromium.org/2077723002
Cr-Commit-Position: refs/heads/master@{#401162}
2016-06-22 02:08:55 +00:00
dcheng
f5d2410841 Convert //extensions/browser from scoped_ptr to std::unique_ptr
BUG=554298
R=rockot@chromium.org

Review URL: https://codereview.chromium.org/1909773002

Cr-Commit-Position: refs/heads/master@{#388687}
2016-04-21 03:45:44 +00:00
jamescook@chromium.org
b32260f927 Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code
* Introduce ApiActivityMonitor interface and make ActivityLog implement it
* Use it to replace EventRouter's one-off EventDispatchObserver, which was
  kind of ugly.
* Use it for function call notifications from ExtensionFunctionDispatcher

This allows app_shell to use ExtensionFunctionDispatcher without an
ActivityLog and gets us another step closer to moving EFD into src/extensions.

BUG=332986,339595
TEST=browser_tests Extension*

Review URL: https://codereview.chromium.org/155183002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249324 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-06 10:03:41 +00:00