commit | a032e85f49c7d43cab4307ec4a1f9f8f6f608ff6 | [log] [tgz] |
---|---|---|
author | Rohit Bhatia <bhatiarohit@google.com> | Fri Sep 02 00:01:50 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 02 00:01:50 2022 |
tree | ce4523ef71ca286beae486a2c2174619cd35cf02 | |
parent | cd81f4372bd54919356af90ebdc2f46fa1fdb076 [diff] |
[DownloadBubble] Open history loaded pdfs in Chrome Downloads loaded from history service do not have should_prefer_opening_in_browser_ set. This CL sets that field for downloads lazily, i.e when used. This happens when the context menu is being created or when downloads are being opened. Call DetermineIfHandledSafelyHelper synchronously from DownloadItemModel::ShouldPreferOpeningInBrowser as the callers for download opening and context menu creation expect the response synchronously. Enable the change only under DownloadBubbleV2, to allow for experimentation for effect. Screencasts With fix: http://go/scrcast/NjQzNDAzMzM4Mzc2ODA2NHw4ZTA4YzM1Ny0xYg Without fix: http://go/scrcast/NTcyNjc2NTMxNDk5ODI3Mnw1MGJhNjU2ZS1kNQ Bug: 1352120 Change-Id: I9275b78920c9874c49d7570a83e49e5b42ca03b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3852182 Commit-Queue: Rohit Bhatia <bhatiarohit@google.com> Reviewed-by: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1042374}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.