0
Commit Graph

11 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
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
Peter Boström
5666ff4f50 Remove most remaining unused "base/macros.h"
Removes `#include "base/macros.h"` from remaining .cc, .h and .mm files
that do not contain `ignore_result(` and do not trigger pre-commit or
pre-upload errors.

Bug: 1010217
No-Try: true
Change-Id: I4cc5207b3deafa7901764d2e633bbb1ad43cfb73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3276692
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#941054}
2021-11-12 03:40:24 +00:00
Peter Boström
951cf77ec6 Replace DISALLOW_COPY_AND_ASSIGN in extensions/
This replaces DISALLOW_COPY_AND_ASSIGN with explicit constructor deletes
where a local script is able to detect its insertion place (~Foo() is
public => insert before this line).

This is incomplete as not all classes have a public ~Foo() declared, so
not all DISALLOW_COPY_AND_ASSIGN occurrences are replaced.

IWYU cleanup is left as a separate pass that is easier when these macros
go away.

Bug: 1010217
Change-Id: Ib10ea058613b53a3aee4c1d0da78a9c574ba2119
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3173894
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923649}
2021-09-22 00:02:59 +00:00
David Bokan
2c0e33a51e Convert CheckForUpdates callback to OnceCallback
This method takes a callback as an argument which is invoked to indicate
completion. The only override that uses this callback is
ChromeRuntimeAPIDelegate; it can invoke the callback immediately, or
store it in a vector of callbacks for later invocation. In the latter
case, the callbacks are all destroyed after being invoked so they can
only be invoked once.

Bug: 1152268
Change-Id: If54898fcffafe232e0ee47365dbccb9f117d9a94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602887
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840378}
2021-01-05 23:26:25 +00:00
lazyboy
640dc51611 Remove RuntimeAPIDelegate::GetPreviousVersion.
We currently go to chrome/ to get the extension version, but we don't
need to. ExtensionRegistry in extensions/ has the info already, move
the function to ExtensionRegistry.

Also, the name GetPreviousVersion is misleading. It only gives us the
current version, so rename it to be simply GetVersion.

BUG=723754
Test=None, internal only change.

Review-Url: https://codereview.chromium.org/2892843002
Cr-Commit-Position: refs/heads/master@{#473332}
2017-05-19 21:37:02 +00:00
kalman
e58e622314 Generate all extension schema namespaces as "api" and instead vary the generated bundle names.
At the moment the 3 modules that use extension API schemas, those in
extensions/common/api, chrome/common/extensions/api, and extensions/shell/api,
are generated with different C++ namespaces: "core_api", "api", and
"shell::api" respectively.

This is a pointless distinction to make since as far as JS is concerned they
must all go on the window.chrome object, therefore namespace conflicts are
impossible. It just ends up adding code noise.

The only problem it solves is that all bundle compiles are generated to the
same name, "GeneratedSchemas" and "GeneratedFunctionRegistry". This patch
solves that a different way, by adding a JSON schema compiler option to give
those generated classes a prefix such that they are "GeneratedSchemas",
"ChromeGeneratedSchemas", and "ShellGeneratedSchemas" respectively.
This lets us to a global substitution from "core_api" to just "api".

R=rockot@chromium.org, dpranke@chromium.org
TBR=ben@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#340119}
2015-07-23 18:28:16 +00:00
dcheng
9168b2fe3e Standardize usage of virtual/override/final in extensions/
This patch was automatically generated by applying clang fixit hints
generated by the plugin to the source tree.

BUG=417463
TBR=yoz@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#300475}
2014-10-21 12:38:39 +00:00
mostynb
0eac4e1bec replace OVERRIDE and FINAL with override and final in extensions/
BUG=417463

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

Cr-Commit-Position: refs/heads/master@{#298042}
2014-10-03 16:32:37 +00:00
limasdf
d70dc5ae4a Cleanup: cpplint from /extensions
* Fix wrong header guard.
 * Remove or add explicit constructor
 * Remove unwanted semicolon

BUG=None

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

Cr-Commit-Position: refs/heads/master@{#294700}
2014-09-13 00:04:56 +00:00
rockot@chromium.org
f0e9ac556d Move chrome.runtime to //extensions.
This moves the runtime API schema and implementation to //extensions,
offloading some of its responsibilities out to a new RuntimeAPIDelegate
provided by the active ExtensionsBrowserClient.

BUG=369391
TBR=derat for mechanical chromeos changes
TBR=tzik for +webkit/browser/fileapi to extensions/browser/DEPS
TBR=sky for new chrome/test dependency

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268749 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-07 14:26:50 +00:00