0
Commit Graph

2748 Commits

Author SHA1 Message Date
15587f7b84 Update GPU documentation
Updates //docs/gpu/gpu_testing.md in a few ways:

1. Clarifies that vpython should be used instead of python
2. Explicitly lists all Telemetry-based test suites and the names they
   can show up as on the bots. This list was generated by parsing the
   //testing/buildbot JSON files.
3. Updates the instructions on how to obtain the command used to run
   a test on swarming and how to download an isolate.

Bug: 1199154
Change-Id: I21bbbe7341d8788ef9e0715e5c090b8cc37469ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2828908
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873436}
2021-04-16 19:56:06 +00:00
3e52abb9ff Fixup typo in configuration.md
The command line for enabling a feature should be "--enable-features"
but not "--enable-feature".

Change-Id: I99878c6b968f094378687a094009c16166f53c77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2832391
Auto-Submit: Owen Min <zmin@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873434}
2021-04-16 19:55:02 +00:00
APF
3c5bddd7c4 Removing felt@ from OWNERS files
I can't effectively review code in most of these directories anymore,
so removing myself. (I've left myself as an owner in the areas of code
I still remember, like the interstitials.)

Change-Id: Ie4b00e738509f83c5082a61b47cbd2cf9e3f25f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2830461
Reviewed-by: Emily Stark <estark@chromium.org>
Commit-Queue: Adrienne Porter Felt <felt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873359}
2021-04-16 17:30:26 +00:00
1708022974 Release notes: Add instructions for generating commits.
Bug: N/A
Change-Id: Id8f41dedaa04e93ed149883621903cf58760d79d
AX-Relnotes: N/A
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826275
Commit-Queue: Akihiro Ota <akihiroota@chromium.org>
Reviewed-by: Meredith Lane <meredithl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873358}
2021-04-16 17:29:17 +00:00
570b369a48 doc: typo fix breadpad->breakpad
Change-Id: I24a98773cd4b919cf7728dee17f9b6678640c6cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2828781
Auto-Submit: Ian Barkley-Yeung <iby@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873103}
2021-04-15 23:33:40 +00:00
4e6608071e Add entries for Chrome Beta
Add User data directory paths for Chrome Beta.  Windows and MacOS did
not have entries for beta.

Bug: 1199384
Change-Id: I5c258b56bfc5bf37761c84ef6d165f2cb2b6f6c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2829213
Reviewed-by: Chase Phillips <cmp@chromium.org>
Commit-Queue: Raymond Toy <rtoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873056}
2021-04-15 21:38:26 +00:00
6d2d6a8599 Convert enum to enum class for DialogContentType
Use enum class instead of enum for DialogContentType.
enum class is more type safety.

Bug: 940736
Change-Id: Ic06b305ad3bf45c815b41ec036dd3852eee11ba7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2823311
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Hwanseung Lee <hs1217.lee@samsung.com>
Cr-Commit-Position: refs/heads/master@{#872676}
2021-04-15 02:48:51 +00:00
1c8f4b9f87 Remove "Win7 FYI Debug (AMD)" and related bots
trybot: gpu-fyi-try-win7-amd-dbg-32
builder: "GPU FYI Win Builder (dbg)"

Bug: 1198174
Change-Id: I8f881e5e3fabef7a9fd8c2526ab1daa9ef91b10d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826255
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872656}
2021-04-15 01:47:15 +00:00
3b731b15e6 Rewrite the macOS debugging doc.
This removes a lot of outdated information and provides new content.

Change-Id: Ia74840e0a4ee63bd22bcadb4d61436b0574163ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826397
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872582}
2021-04-14 21:54:03 +00:00
59614678b2 mac/arm: Update docs to mention that goma now works
Bug: 1103236,b/183118231
Change-Id: I1dc863129654279e3d84b12263242ba574c72080
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826233
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872458}
2021-04-14 16:03:18 +00:00
bab946c439 Fix bad examples from login_dialog.md.
- Use std::make_unique() instead of new.
- Don't include base/callback_forward.h in .cc files.

Change-Id: I88f0dec2f3b16f2156e04ac508346f934b91ee2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2816442
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
Reviewed-by: Wei Li <weili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872191}
2021-04-13 23:55:23 +00:00
8dc6c07a17 Publish WebPerf Q1 progress and Q2 objectives
Change-Id: Ia4fe0499e110bc6c142d9996617f40fdc76e2eeb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2822236
Reviewed-by: Annie Sullivan <sullivan@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872146}
2021-04-13 22:26:59 +00:00
c4bf57626d Android: Add docs for fast_local_dev_server.py
Add a section to explain how to make use of the android fast local dev
server. This allows devs to greatly speed up their edit-build-deploy
cycles.

Bug: 1189333
Change-Id: Iaee9070d9f94cdd0c25492d5867134847d37f750
Fixed: 1189333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2819041
Auto-Submit: Peter Wen <wnwen@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#871658}
2021-04-12 22:12:36 +00:00
78d9234286 Mac: exclude Mac-TriageBypass from Untriaged Mac bucket
Whoops! I guess Mac-TriageBypass fulfills the condition label:Mac all
by itself.

Bug: None
Change-Id: I25f4eae1f45ad30dec64f04318bfa7fca220f6a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2822689
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#871587}
2021-04-12 19:32:26 +00:00
c0a93c1712 [docs] Mention package manangers in docs/clang_tidy.md
Change-Id: I96db5f04b36fc9f9a066b46afb72d01469b1cedf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2764470
Commit-Queue: George Burgess <gbiv@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#871519}
2021-04-12 17:12:05 +00:00
a4f98fc9b2 Delete old documentation
Goodbye xusydoc

Change-Id: Ifed28bc1870cfc1cbc6508d63fb57585402b80c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2816015
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Stephen Martinis <martiniss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#871069}
2021-04-09 19:33:23 +00:00
da3a7a817b Convert enum to enum class for View::EmphasisMetric
Use enum class instead of enum for View::EmphasisMetric.
enum class is more type safety.
and rename EmphasisMetric to Emphasis to keep usage sites
reading like they used to.

Bug: 940736
Change-Id: I84540655dcf1b009bb620e67829a798f5bdfd866
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2804936
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Hwanseung Lee <hs1217.lee@samsung.com>
Cr-Commit-Position: refs/heads/master@{#870759}
2021-04-08 23:34:07 +00:00
6467f1c933 Logcat: enable developers to use custom highlight patterns.
Most of the Chrome/Android developers frequently rely on custom
log messages during the development or bug-fixing phase.
Whether we add logging to validate the flow or inspect the data,
we frequently depend on certain patterns.

This change enables Developers to define environment variable,
`CHROMIUM_LOGCAT_HIGHLIGHT`, holding a regular expression that will
be applied to Tag and Message to verify whether a given log line is
relevant to the Developer. Identified relevant lines are highlighted.

Change-Id: Id4ae5a8698bb8d097151b863ea663b1b922e5925
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2815513
Commit-Queue: Tomasz Wiszkowski <ender@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870718}
2021-04-08 21:54:42 +00:00
92b004c9bb Move the Mac Debugging doc from Sites to Markdown.
This is a simple translation of the sites page
(https://dev.chromium.org/developers/how-tos/debugging-on-os-x) to
Markdown, in preparation for rewriting and cleaning up the page.

Change-Id: I0c1182de32422ff8ba5124704a988d0e7f96ffd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2815522
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870673}
2021-04-08 20:12:34 +00:00
645adc69a3 Update docs to point directly at RuntimeEnabledFeatures.md.
Bypass the old chromium.org/blink/runtime-enabled-features link.
Follow-up to https://crrev.com/633263

Change-Id: I45831d77af32deb3f969307027944a6cb63665ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2798814
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870619}
2021-04-08 18:24:05 +00:00
8ba0d0a967 [docs] Add a good example CL to wmax_tokens.md
Bug: 1049569
Change-Id: Ic5ea87bd140aa51009e59ac4616a8619ede64612
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2814638
Auto-Submit: Hans Wennborg <hans@chromium.org>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/master@{#870574}
2021-04-08 16:52:15 +00:00
9affb75b63 Metrics: same-origin documents with different COOP
This CL adds use counters tracking how often a COOP
same-origin-allow-popups page has a document which is same-origin with a
document in a COOP unsafe-none page in the same browsing context group.

Bug: 1184718
Change-Id: I35023c9759eb4afdb30dc6c7bcb5b6beddb80790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2735678
Commit-Queue: Camille Lamy <clamy@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870461}
2021-04-08 11:28:37 +00:00
d48b0323b6 Fix typo in commit_checklist.md
Bug: None
Change-Id: Ib6b20ddf9345217295db25f5dc3a229a399af6a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2809640
Reviewed-by: Toby Huang <tobyhuang@chromium.org>
Commit-Queue: Toby Huang <tobyhuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870218}
2021-04-07 21:47:04 +00:00
a1acc7d535 mac: Update arm64 docs to say that building _on_ arm macs now works, with reservations
See docs/mac_arm64.md for details :)

Bug: 1103236
Change-Id: If91cbd676b2b0a04af582a3c7d42cfae408e8934
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2809436
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#869772}
2021-04-06 23:55:41 +00:00
70ac40fff3 Remove mlamouri from OWNERS, WATCHLIST, and histograms.
Bug: None
Change-Id: I7c536aab812609a0612cb4c4838cf8d5422f557e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2787977
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Auto-Submit: Mounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
Cr-Commit-Position: refs/heads/master@{#869771}
2021-04-06 23:55:08 +00:00
3af975e850 Link to doc about performing a merge
After getting merge approval, it can be hard to find details of how,
exactly, one merges a change into a branch. Since merge requests
automatically link to docs/process/merge_request.md, have a link from
there to the doc with the technical details.

Bug: None
Change-Id: I429064fa06c6b0562d15584c14c04a8347cbafff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2783154
Auto-Submit: Ian Barkley-Yeung <iby@chromium.org>
Reviewed-by: Alex Mineer <amineer@chromium.org>
Commit-Queue: Alex Mineer <amineer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#869642}
2021-04-06 19:00:35 +00:00
0dacc4611c Docs: add a known issue for Android L-M emulators
No change to logic, only docs. This updates the emulator docs to call
out a known issue with Android L-M emulator images. Unlike other OS
versions, all L-M emulator images are configured to expect the AOSP
WebView package.

Test: Upload to gerrit > open file > click "gitiles"
Change-Id: Ia48ab33dab246b89c98cfc512bd5e0007f760f85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2806654
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Reviewed-by: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#869554}
2021-04-06 16:10:24 +00:00
d358873fd7 Doc: Add tips about git new-branch --upstream_current and git cl issue
This CL adds tips about `git new-branch --upstream_current` and `git
cl issue` to commit_checklist.md. This CL also adds some tips about
testing.

Bug: None
Change-Id: I446ba3fd4997058fd26ae032013cd470cc1ee0fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2796214
Auto-Submit: Toby Huang <tobyhuang@chromium.org>
Reviewed-by: Zork <zork@chromium.org>
Commit-Queue: Zork <zork@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868688}
2021-04-01 21:47:34 +00:00
3b86cefcc4 Update the LSC workflow for additional certainty
Change-Id: I36e4e79ddd90db10a09fea21776b065c736e170f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2798580
Auto-Submit: Jason Clinton <jclinton@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868497}
2021-04-01 12:47:46 +00:00
12af6b222a Add guidance for git cl upload -T
This option was added a while back, thought it would be useful
to have it called out in the section about patchset titles and
prompting.

Change-Id: I1bb2878d697393dfef493edeb3fcd6984c68b049
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2798018
Commit-Queue: Daniel Libby <dlibby@microsoft.com>
Auto-Submit: Daniel Libby <dlibby@microsoft.com>
Reviewed-by: Toby Huang <tobyhuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868318}
2021-03-31 23:30:39 +00:00
8579294710 [docs] Make it more clear what to do when hitting a -Wmax-tokens warning
Bug: 1049569
Change-Id: I179334ff354b5645260dfb456a874eac37d34ca3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2797573
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868156}
2021-03-31 17:30:06 +00:00
dffc12cb6d Update heap profiler documentation.
Change-Id: I8308984feccc6a2327ffd11f5218d3e5c9358fc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2290083
Reviewed-by: ssid <ssid@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Auto-Submit: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867913}
2021-03-31 01:08:24 +00:00
7a6164e14e Remove outdated reference to lldb_chrome.py
Instead, just point to lldbinit.md which seems up-to-date.

R=avi@chromium.org

Change-Id: I7a78b99a22787ff14282687ed00ded55c2e2030a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2795238
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867778}
2021-03-30 20:45:43 +00:00
e99d91eb8d Update documentation on using rr.
This makes a few updates to the documentation on using the rr debugger:

 * clarify recommendation to build from source into one about using a
   recent version (which might mean building from source), and explain
   why

 * mention both rr replay -p and -f, and explain the difference

 * remove reference to a year-old bug that's now subsumed by the advice
   on using a recent version

 * add advice on workarounds for calling functions that use LOG() from
   gdb

 * link to relevant Chromium Chronicle episode

Change-Id: I13206a009103ae12f83a3890101a91e02fd78a0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2794877
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867753}
2021-03-30 20:18:00 +00:00
9783f92da2 base/android: use memfd_create on R+ in ModernLinker
The memfd_create(2) is necessary for creating a shared memory region in
the app zygote and letting it survive the fork(2). Surviving the
memfd-provided FD is only possible on Android R+ because of the new
behavior in FileDescriptorWhitelist.

All the functionality of memfd_create was introduced in kernel version
3.17. The minimum supported kernel version on R is 4.4. Hence no kernel
version check is performed in Chrome when running on R+.

The libandroid.so is providing a couple of functions to abstract away
creating and sealing the shared memory regions:
* ASharedMemory_create(),
* ASharedMemory_setProt().

There is a plan to remove ashmem support from the kernel releases, and
presumably switch to memfd. The switch to memfd has not happened in R,
hence the ModernLinker has to use the memfd explicitly.

For memfd-provided regions we implement these _create and _setProt
functions using memfd_create and fcntl(F_ADD_SEALS, ...). The difference
is that PROT_EXEC is not supported for memfd.

Unfortunately, the memfd regions have a different behavior with mmap(2).
While ashmem regions are always memory-mapped as MAP_SHARED, the
read-only memfd regions should use MAP_PRIVATE. Counter-intuitively,
those pages are still shared across processes. Even more: a read-only
memfd region can be mapped as a read-write with MAP_SHARED, but in this
case it would copy the physical pages (likely copy-on-write). This
required to add other functions that behave differently for ashmem and
memfd:

  typedef bool (*MapReadOnlyFunction)(int fd, size_t size, void** out_address);
  typedef bool (*MapReadOnlyFixedFunction)(int fd, size_t address, size_t size);

The "Fixed" variant performs a MAP_FIXED, which can only reliably work
on top of an address range that was previously reserved with mmap. This
will be needed later.

Creating RELRO FD from within the App Zygote is not enabled with this
change, it switches _all_ RELRO FD regions to memfd on R+ for
simplicity. Creating in zygote is coming soon. In order to reduce the
size of potential relands the switch is guarded by a compile time
constant, and not enabled yet. The native unittest, however, starts
covering the memfd support right now.

Bug: 1154224
Change-Id: I9cc63ae6db268fb14ee7b6197bc101b13257e93e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2791391
Reviewed-by: Benoit L <lizeb@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Egor Pasko <pasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867649}
2021-03-30 16:41:01 +00:00
df4ff8f68e [doc] [sheriffing] Add a note about respins to the Flaky tests section
Change-Id: If353d4c564e4b493d870b8405419df24d520f28c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2708424
Reviewed-by: Alex Mineer <amineer@chromium.org>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867340}
2021-03-29 23:36:38 +00:00
91a8ccffb2 [content] Introduce LifecycleStateImpl::kPendingCommit
This CL adds a new LifecycleStateImpl::kPendingCommit to the
RenderFrameHostImpl::LifecycleStateImpl to represent the state of the
RenderFrameHost after the navigation commits in the renderer and is
waiting to commit in the browser process.

kPendingCommit Doc:
https://docs.google.com/document/d/1ZcPSHVtVmvlmNdodHtHgjStQngs4ZJLFVGcIFdfCGjE/edit?usp=sharing

BUG=1182291

Change-Id: I77e105853b60d7f9494a285174c264018763bb94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2719235
Commit-Queue: Sreeja Kamishetty <sreejakshetty@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867233}
2021-03-29 16:26:13 +00:00
0c88b7b981 linux: Don't link clang-format against zlib
Ports https://chromium-review.googlesource.com/c/chromium/src/+/2788288
to linux. See that CL description for details.

Bug: none
Change-Id: I54badea013e97a090138f1a3a35df51579d24fd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2790526
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867203}
2021-03-29 15:23:03 +00:00
f49c3c2b22 linux: Build clang-format in a sysroot
The binary shouldn't depend on what system it was built on.
We already have a sysroot for chromium, so just use that.

Built at the same revision as previously (eb85e90350e).
No expected behavior change.

Bug: none
Change-Id: Iddced88221bd8864c5a33963ca7796b0660d0732
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2790525
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867197}
2021-03-29 14:58:49 +00:00
95ed3a135c mac: Don't link clang-format against libz.1.dylib either
clang-format doesn't neeed libz. It's just here because LLVM's
libSupport can provide zlib functions (which clang-format doesn't
call, but other libSupport clients do).

No behavior change, slightly more tidy `otool -L` output.

Bug: none
Change-Id: Id1c0961bfb85ef4e677738f28528c2274e8cdd00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2788288
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867185}
2021-03-29 14:09:44 +00:00
f092a0e554 mac: Don't link clang-format against /usr/lib/libncurses.5.4.dylib
No behavior change, just slightly tidier `otool -L` output. And matches
what we do on Linux.

Bug: none
Change-Id: I5229ad1b90ff6fcb5a8e9909ddc584a9d38b7c37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2788030
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867073}
2021-03-28 16:42:22 +00:00
b807f2962a mac: Add clang-format binary that can run on arm.
Normally we prefer having a dedicated binary each for intel and arm,
but clang-format:

1. is pulled via a .sha1 file and the binary will be next to the .sha1
   file

2. the location of the binary is referenced from depot_tools

So adding a second binary would mean adding a second .sha1 file, and
then we'd have to teach depot_tools to look in both places. And
clang-format is reasonably small. So just make it a universal binary
instead.

I built clang-format at the same revision the intel-only binary
was built at (eb85e90350e), using the steps in
docs/updating_clang_format_binaries.md. The only change I made
was to also pass `'-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'` to
cmake (need to include the quotes, else the shell uses the `;` as
statement terminator -- luckily the `../llvm` part was after it
so cmake informed me of missing this at first).

Bug: 1190868
Change-Id: I092c4b1e9d37ddd7aeb4caef7d612a8df44092f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2786107
Reviewed-by: Hans Wennborg <hans@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866974}
2021-03-26 18:47:52 +00:00
299329ad06 [content] Replace LifecycleState with LifecycleStateImpl
This CL renames all the usages of LifecycleState with
LifecycleStateImpl.

This CL is the first part of the work to expose RenderFrameHost
lifecycle state to //content/public.
RenderFrameHostImpl::LifecycleStateImpl will be used exclusively
within //content, where it will represent all possible
lifecycle states. Future CLs will introduce
RenderFrameHost::LifecycleState, which will expose a high-level a
subset of these states publicly.

This is a no-op update.

BUG=1113357

Change-Id: I6e70090b76f7e52d252e229f371f861ad07cc0f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2774609
Commit-Queue: Sreeja Kamishetty <sreejakshetty@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866589}
2021-03-25 14:06:01 +00:00
6026fd19f9 [docs/code_reviews.md] explain that Rubber Stamper doesn't provide OWNERS
Change-Id: I9f316d277483751b64ce62691b7f16497f47d024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2785464
Commit-Queue: Jason Clinton <jclinton@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Auto-Submit: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#866255}
2021-03-24 19:58:33 +00:00
45c205e717 Add note to Fuchsia GPU testing doc
The note is that `fx serve` is required to be running for the test
scripts to actually work.

Bug: 1088005
Change-Id: I5a7ed416e676ae3a4dbe4329d712bf81041196b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2781546
Reviewed-by: Sharon Yang <yangsharon@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865971}
2021-03-24 03:32:00 +00:00
5e68127976 Mac: update triage docs to add Mac-TriageBypass tag
Bug: None
Change-Id: Ibc8d25ba3842310703d2a48aca08a1e43a1e9591
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2782000
Auto-Submit: Leonard Grey <lgrey@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865688}
2021-03-23 17:04:06 +00:00
0d72205fbb profiling doc: fix broken link for simple chrome instructions
Change-Id: I6b1cfe5e53ecd31e32c6b6754048d3dc3332b7b5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2779820
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865406}
2021-03-22 23:05:54 +00:00
2c470ea5c9 [LSC] Remove UTF8ToUTF16 from Literals without Escape Sequences
This change removes calls to base::UTF8ToUTF16 with a single-line string
literal not containing escape sequences and replaces them with a u"..."
literal instead.

This is a mechanical change:
$ git grep -lw UTF8ToUTF16 | \
      xargs sed -i 's/\(base::\)\?UTF8ToUTF16(\("[^\\"]*"\))/u\2/g'
$ git cl format

AX-Relnotes: n/a.

Bug: 1189439
Change-Id: I6df2e531f62926a12be3f610ce8627d94ec407f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2776021
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865390}
2021-03-22 22:26:24 +00:00
3b32caa474 Clean up documentation on code reviews.
- Mention what CLs stand for.
- Mention "Find Owners" button in Gerrit.
- Provide links to sections, rather than referring to them as "above"
  and "below".
- Use backticks to mark certain keywords more consistently.
- Change reference to the "blink" dir to third_party/blink.

Change-Id: Ied603ec93ea81256f2ef1fe0318a508989ce3c3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2775960
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865229}
2021-03-22 17:24:19 +00:00
b2953e4f57 Update docs/clion.md with more includes dirs.
Adds 2 additional include dirs:

- src/out/Default/gen, which allows CLion to understand generated files
(e.g. mojom files and debugging_buildflags.h)

- src/third_party/googletest/src/googletest/include, which allows CLion
to understand testing/gtest/include/gtest/gtest.h and its includes.

Change-Id: I1e93b4fae40da8d56e336d550d89dac5c9b8b8d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2775967
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Reviewed-by: Orin Jaworski <orinj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#864873}
2021-03-20 00:14:04 +00:00