0
Commit Graph

7 Commits

Author SHA1 Message Date
Solomon Kinard
3e372bd277 Extensions: CodeHealth: Add curly braces as per the latest style guide
Bug: chromium:346952289
Change-Id: I091b0d472021ab0bd86b1529e6fb5a01fe0f7f20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5752761
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Auto-Submit: Solomon Kinard <solomonkinard@chromium.org>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1336252}
2024-08-01 20:59:13 +00:00
Avi Drissman
bb9cd02c17 Update header includes for /base/functional in /d*, /e*, /f*
bind.h, callback.h, callback_forward.h, and callback_helpers.h
moved into /base/functional/. Update the include paths to
directly include them in their new location.

Bug: 1364441
Change-Id: I6ce44f5813ff87215cb0df1d13bb649885a54c6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4152775
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091122}
2023-01-11 01:03:29 +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
David Bokan
3bf822dcc9 Convert extensions tests from base::Closure
This CL converts a pattern in extensions tests where a RunLoop quit
closure is bound to a callback argument. In most of these cases we can
simply convert to a OnceClosure.

printer_provider_apitest has one exception that's a RepeatingClosure
because the API actually may call the callback multiple times. In this
case, the quit closure must be copied so it must be a RepeatingClosure.

Bug: 1152268
Change-Id: I4a201cbd78d818f1793b94a8c106d62bb59ba8f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2605647
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840314}
2021-01-05 21:34:28 +00:00
Jan Wilken Dörrie
222bd83081 [base] Apply BindOnceRewriter in //extensions
This change applies the BindOnceRewriter in //extensions.
This rewriter replaces calls to base::Bind and base::BindRepeating with
calls to base::BindOnce, in case the result is immediately assigned to a
base::OnceCallback. Given that base::RepeatingCallback is implicitly
convertible to base::OnceCallback, there is no change in functionality.

Steps:
  1. run_tool.py --tool base_bind_rewriters \
                 --tool-arg='--rewriter=bind_to_bind_once'
  2. git cl format

This CL was uploaded by git cl split.

R=lazyboy@chromium.org

Bug: 714018
Change-Id: I5091b018198c9981a4b21c824602007580ea618e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132329
Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#760421}
2020-04-20 09:14:30 +00:00
tomhudson
55241b6041 Remove all uses of skia::RefPtr and stale includes
This CL is the content/ and extensions/-specific sections
of the change.

Finish deprecating skia::RefPtr in favor of sk_sp<>.
This should significantly reduce the amount of manual reference
management Chromium and Blink authors need to do for Skia objects.

We still have some APIs vending raw pointers to ref-counted Skia
objects which will need to be wrapped in sk_sp<>, but that should
be easier and more predictable. This CL does *not* try to remove
all cases of raw pointers to Skia objects in Chromium.

R=fmalita@chromium.org,piman@chromium.org,rockot@chromium.org,mkwst@chromium.org
BUG=skia:5077,604716

Review-Url: https://codereview.chromium.org/1951013003
Cr-Commit-Position: refs/heads/master@{#396458}
2016-05-27 14:05:39 +00:00
afakhry
d91a619173 Task manager's apps and extensions should show the correct favicon
We need to get the correct favicon of the app or extension so that it's
easier to identify in the table.

Before and after screenshots are available on the BUG thread.

BUG=525293
TEST=browser_tests --gtest_filter=ExtensionTagsTest.*

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

Cr-Commit-Position: refs/heads/master@{#346155}
2015-08-28 15:53:02 +00:00