Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from chromium:main #67

Merged
merged 114 commits into from
Dec 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
102191c
smartsorting: specify feature states for test
Dec 8, 2021
a9faeb7
Intents: Add metric for interactions with the intent picker icon
tgsergeant Dec 8, 2021
6932944
[FilesDarkMode] Make change default dialog dark mode compliant
ben-reich Dec 8, 2021
0db824b
Revert "Only filter out subsettings with lower scores."
tguilbert-google Dec 8, 2021
99378ce
Roll Chrome Win64 PGO Profile
Dec 8, 2021
38b198e
Remove NaclBrowserDelegate::IsNonSfiModeAllowed
nico Dec 8, 2021
91514c9
Download: Persist range request offsets.
Dec 8, 2021
996c9e3
Rename WebApplicationShortcutsMenuItemInfo
Dec 8, 2021
cabe27c
Revert "Read data from TfLite model file off thread"
Dec 8, 2021
1082f37
metrics: Add MediaFoundation HRESULTs to enums.xml
xhwang-chromium Dec 8, 2021
1ce94ac
Create missing UMA enum value entries from NTP feed metrics
chuim Dec 8, 2021
0406402
personalization: correctly style D/L image tile
Dec 8, 2021
b2a314e
[Frameworks roll] Roll to 415062202 piper revision
Dec 8, 2021
cf0f03f
Don't deserialize if there are no bytes remaining
Dec 8, 2021
7a9fd2d
infra: Remove the chromium.chromium_tests.use_rdb_results experiment
bpastene Dec 8, 2021
8f0fd02
[Code Health] Modernize Value API in session_cleanup_cookie_store.cc
chikamune-cr Dec 8, 2021
51f1ea4
[Code Health] Modernize Value API in logo_service_impl_unittest.cc
chikamune-cr Dec 8, 2021
ea93fb1
[Code Health] Modernize Value API in per_user_topic_subscription_requ…
chikamune-cr Dec 8, 2021
a5933db
[Code Health] Modernize Value API in test_util.cc
chikamune-cr Dec 8, 2021
f78caee
[Code Health] Modernize Value API in scoped_page_focus_override.cc
chikamune-cr Dec 8, 2021
3fd3c48
[Code Health] Modernize Value API in shell_devtools_bindings.cc
chikamune-cr Dec 8, 2021
736ed58
[CrOS Bluetooth] Assume forgetting a device will succeed.
Dec 8, 2021
6f349b0
[Code Health] Modernize Value API in app_window_api.cc
chikamune-cr Dec 8, 2021
9f47779
Make build/android presubmit checked with pylint-2.6.
yoshisatoyanagisawa Dec 9, 2021
338738c
Roll Chrome Win32 PGO Profile
Dec 9, 2021
f9c8c45
exo: Set permissions for the wayland socket's directory.
Dec 9, 2021
2388b39
Remove nonsfi code in base/
nico Dec 9, 2021
4a3e003
[GridFragmentation] Calculate break-appeal before for MovePastBreakpoint
bfgeek Dec 9, 2021
d54cc81
*Scan+MTE: Disable MTE for the scanning thread when scan is in progress
Dec 9, 2021
821beef
Print Preview: Migrate print button, app, and sidebar tests to TS
Dec 9, 2021
b7b3507
Remove enable-experimental-accessibility-switch-access-setup-guide flag
Dec 9, 2021
5f53e94
[FedCM] Support per-directory well-known
yi-gu Dec 9, 2021
ef051a6
Import wpt@b03df354b93b285fe1764d567b7c1a074df4a808
Dec 9, 2021
4d11222
Web apps: Add more metrics for default app duplication
alancutter Dec 9, 2021
f9b6005
Enable the Barcode Detection API on Lacros
reillyeon Dec 9, 2021
312a491
uprev emoji metadata
Dec 9, 2021
c8bef60
Fix BRPQuarantinedCount metric
Dec 9, 2021
22ecf32
shimless: Add new error codes from rmad.proto
greatgoogleymoogley Dec 9, 2021
e0bc9bd
capture_mode_settings: Allow virtual keyboard with folder selection
Dec 9, 2021
56bb7a6
Enable Web-contextual suggestions on SRP on Android.
tomasz-wiszkowski Dec 9, 2021
d7598ba
Remove some nonsfi test data
nico Dec 9, 2021
cfbe605
Add ayui@ to CacheStorage & IDB Owners
ayuishii Dec 9, 2021
e7808d0
[ios, singlentp] Do not return nil in ntpCoordinatorForWebState:
Dec 9, 2021
1420b4f
Removes ReceiverDevice message from the discovery_resources.proto
Dec 9, 2021
e3a5d6d
[LR] Add Heart reaction ♥️
guillaumejenkins Dec 9, 2021
09838b9
Roll Fuchsia SDK from 7.20211208.1.1 to 7.20211208.3.1
Dec 9, 2021
46d631b
Cleanup: Remove the GlobalMediaControlsForCast feature flag
takumif Dec 9, 2021
e56c7f5
Add CdmContext for HWDRM with ARC
Narflex Dec 9, 2021
c13c421
Remove spdy_session_direct_ field
davidben Dec 9, 2021
7fc4193
[Sheriff] Disable ProfileCollectionsScheduler on Mac/iOS
tguilbert-google Dec 9, 2021
06243a2
Reporting: Define data for TME reporting.
Dec 9, 2021
dabe981
system-extensions: Add system-extensions-internals
Dec 9, 2021
438a3ea
Roll src-internal from 4f888a3599e2 to 76dba05e1d10 (1 revision)
Dec 9, 2021
31903b5
Extra debug output for flaky PresentationFeedback test
JoeNotCharlesGoogle Dec 9, 2021
74b11d0
[Sheriff] Disable testSyncDownloadBookmark
tguilbert-google Dec 9, 2021
0e336d0
Roll Dawn from 370e6bd73410 to a97f7520ecb7 (3 revisions)
Dec 9, 2021
d5f0e50
Merge model annotations if there are multiple calls that have non-emp…
Dec 9, 2021
76d3d84
Mask the login username in Login Events
Dec 9, 2021
b1b778a
[Sheriff] Disable NestedSubframeWithUnloadHandler TSAN
tguilbert-google Dec 9, 2021
f602d57
[AutoDark] Add feedback source for auto dark
fwy423 Dec 9, 2021
bfb1d3e
[MPArch] ReportBadMessage on prerendering for PresentationServiceImpl
cdesouza-chromium Dec 9, 2021
7c91657
Allow test_runner to capture Ash logging for Lacros browser tests
Dec 9, 2021
8f69e6c
metrics: Add more DRM_E_* hresults to enums.xml
xhwang-chromium Dec 9, 2021
27f831b
Fix restore DCHECK for shared FrameNavigationEntries from old versions.
creis Dec 9, 2021
f420ddd
Roll src/third_party/libvpx/source/libvpx/ 13f984c21..ab35ee100 (2 co…
Dec 9, 2021
754b511
Web apps: Use histogram functions in PreinstalledWebAppManager
alancutter Dec 9, 2021
f4863c5
[remoting] Restore previous capture rate of 30 FPS.
Dec 9, 2021
1ee1d8b
Disable testSaveRestoreStateWithHistoryItemList on M-
tguilbert-google Dec 9, 2021
ae622c4
media/gpu/v4l2: add VIDIOC_DQBUF ioctl call
Dec 9, 2021
872ef1b
[Floss] Populate initial device properties
Dec 9, 2021
0f47f95
Add URL observer for tailored security
Dec 9, 2021
a552ce5
Revert "Add the kExtension app type to present browser extensions."
bpastene Dec 9, 2021
e76cb75
Remove some pre-CompositeAfterPaint code from tests
progers Dec 9, 2021
3d297b6
Revert "Disable GPU WebGL flakiness workaround"
Dec 9, 2021
0435a00
Shimless: Move the spinner above the title on the splash screen.
Dec 9, 2021
a0f2390
Announce to the screenreader when translation completes or fails.
scott-little Dec 9, 2021
716c1ae
Replace TestAttributionManager with gmock
Dec 9, 2021
a359855
platform: Bump expiry on UnaggregatedUsageTime*.
Dec 9, 2021
1f5324b
Enable DynamicMaxAutocomplete feature on Android
tomasz-wiszkowski Dec 9, 2021
0167c4d
[memories] Make all callsites to use the locale-specific feature check
Dec 9, 2021
c8a90c6
Roll Chrome Mac PGO Profile
Dec 9, 2021
5905630
Add Consented Desktop Notifications for Tailored Security
Dec 9, 2021
7f68bd2
Roll Chrome Linux PGO Profile
Dec 9, 2021
b9f7d08
Rename windowControlsOverlay.getBoundingClientRect->getTitlebarAreaRect
amandabaker Dec 9, 2021
c923f92
NotificationRevamp: Fix header row style and behavior.
Dec 9, 2021
ebc0f2b
[Read Later] Choose custom or regular tabs
bttk Dec 9, 2021
aa081d1
Do not always set physical HID device id on macOS
beaufortfrancois Dec 9, 2021
e0c657e
Remove more nonsfi code
nico Dec 9, 2021
aab4899
Use SchemeHostPort instead of GURL::Replacements in HttpStreamFactory…
rch-chromium-org Dec 9, 2021
4adf33c
Match the max-number in field trial config
fwy423 Dec 9, 2021
9ff4319
Roll Skia from c307c5566d11 to d2eb1d90b3b9 (6 revisions)
Dec 9, 2021
5e5acb9
ArcScreenCapture: Update OWNERS
Dec 9, 2021
4db71f4
blink/handwriting: split wpt into internal and external ones
wacky6 Dec 9, 2021
67ea644
[DragDrop] Hide context menu header image for popup
fwy423 Dec 9, 2021
a3cd805
Desk Templates: Set Activation Window when hiding templates grid
Dec 9, 2021
9e3f6f9
[Messages] Use webcontents focus/lostFocus to control navigation scope
Dec 9, 2021
c81cf18
Extend expiry of Power.FrameDamage* histograms.
betasheet Dec 9, 2021
d75c35d
Remove GraphicsLayer from PaintArtifactCompositor
progers Dec 9, 2021
34341e4
NotificationRevamp: Fix UI style of new expanded notification view.
Dec 9, 2021
0ec2c69
Roll Chrome Win64 PGO Profile
Dec 9, 2021
f455bcf
[pac] Add a specific flag for enabling PAC only
Dec 9, 2021
a8bfe9d
Schedule a write when updating failed launch stability prefs.
Dec 9, 2021
c98a120
[Copy To Clipboard] Record the mime type of the copied data.
melzhan Dec 9, 2021
e5c1470
Roll Catapult from fcd455d2e403 to d16203a89ed9 (4 revisions)
Dec 9, 2021
b66b0b1
[mojo] reject AddBrokerClient on non-broker nodes
krockot Dec 9, 2021
dd3f3e4
Reland "Only filter out subsettings with lower scores."
Dec 9, 2021
e506031
sensors: Add logging for PlatformSensor creation and destruction
nondebug Dec 9, 2021
d3747b0
Remove NonSFI mode part 1.
Dec 9, 2021
6dfe8a0
[cc/metrics] Added median and variance to normalized smoothness UKMs
Dec 9, 2021
80f8c1e
bindings: Mitigate a crash issue of GetCreationContextChecked()
yuki3 Dec 9, 2021
53223d7
[weblayer, skew tests] Refresh skew tests for M97
Dec 9, 2021
79bd5d0
[fencedframe]Re-enable NETHWFFTest.CanRunDiagnosticsDialogOnMainFrame
abhijeetk Dec 9, 2021
8d47193
Roll SwiftShader from a4232c15e287 to d4130e9ac367 (3 revisions)
Dec 9, 2021
1c481c2
Revert "system-extensions: Add system-extensions-internals"
bpastene Dec 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Read data from TfLite model file off thread"
This reverts commit 9666a97.

Reason for revert: Causing crashes. See https://bugs.chromium.org/p/chromium/issues/detail?id=1277884

Original change's description:
> Read data from TfLite model file off thread
>
> While classification happens off-thread, the process of reading from
> the model file and passing the model data between threads can still
> impact the main thread.
>
> Since a trivial TfLite model file does not cause any regression in
> Largest Contentful Paint, we speculate that this time is the root
> cause of the regression.
>
> Bug: 1277600
> Change-Id: I4bfe5d21bc3141e5101d449a00ce4549ca1c424e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3321309
> Reviewed-by: Varun Khaneja <vakh@chromium.org>
> Commit-Queue: Daniel Rubery <drubery@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#949141}

Bug: 1277600
Change-Id: Id443ca5aa850c44db1b48d0b12fe34a3b624c000
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3324702
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949806}
  • Loading branch information
Daniel Rubery authored and Chromium LUCI CQ committed Dec 8, 2021
commit cabe27c6c9ed9dd1544c542748165b14f6a75cb1
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ void FlatBufferModelScorer::ApplyVisualTfLiteModel(
base::BindOnce(&ApplyVisualTfLiteModelHelper, bitmap,
flatbuffer_model_->tflite_metadata()->input_width(),
flatbuffer_model_->tflite_metadata()->input_height(),
GetWeakPtr()),
std::string(reinterpret_cast<const char*>(
visual_tflite_model_.data()),
visual_tflite_model_.length())),
std::move(callback));
base::UmaHistogramTimes(
"SBClientPhishing.TfLiteModelLoadTime.FlatbufferScorer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ void ProtobufModelScorer::ApplyVisualTfLiteModel(
{base::TaskPriority::BEST_EFFORT, base::WithBaseSyncPrimitives()},
base::BindOnce(&ApplyVisualTfLiteModelHelper, bitmap,
model_.tflite_metadata().input_width(),
model_.tflite_metadata().input_height(), GetWeakPtr()),
model_.tflite_metadata().input_height(),
std::string(reinterpret_cast<const char*>(
visual_tflite_model_.data()),
visual_tflite_model_.length())),
std::move(callback));
base::UmaHistogramTimes(
"SBClientPhishing.TfLiteModelLoadTime.ProtobufScorer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,10 @@ std::vector<double> Scorer::ApplyVisualTfLiteModelHelper(
const SkBitmap& bitmap,
int input_width,
int input_height,
base::WeakPtr<Scorer> scorer) {
if (!scorer)
return std::vector<double>();

const std::string& model_data) {
TRACE_EVENT0("safe_browsing", "ApplyVisualTfLiteModel");
std::string model_data = std::string(
reinterpret_cast<const char*>(scorer->visual_tflite_model().data()),
scorer->visual_tflite_model().length());
std::unique_ptr<tflite::task::vision::ImageClassifier> classifier =
CreateClassifier(std::move(model_data));
CreateClassifier(model_data);
if (!classifier)
return std::vector<double>();

Expand Down Expand Up @@ -167,8 +161,4 @@ double Scorer::LogOdds2Prob(double log_odds) {
Scorer::Scorer() = default;
Scorer::~Scorer() = default;

base::WeakPtr<Scorer> Scorer::GetWeakPtr() const {
return weak_ptr_factory_.GetWeakPtr();
}

} // namespace safe_browsing
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ class Scorer {
virtual void ApplyVisualTfLiteModel(
const SkBitmap& bitmap,
base::OnceCallback<void(std::vector<double>)> callback) const = 0;

const base::MemoryMappedFile& visual_tflite_model() const {
return visual_tflite_model_;
}

#endif

// Returns the version number of the loaded client model.
Expand Down Expand Up @@ -133,8 +128,6 @@ class Scorer {
Scorer(const Scorer&) = delete;
Scorer& operator=(const Scorer&) = delete;

base::WeakPtr<Scorer> GetWeakPtr() const;

protected:
// Helper function which converts log odds to a probability in the range
// [0.0,1.0].
Expand All @@ -145,7 +138,7 @@ class Scorer {
const SkBitmap& bitmap,
int input_width,
int input_height,
base::WeakPtr<Scorer> scorer);
const std::string& model_data);

base::MemoryMappedFile visual_tflite_model_;
base::WeakPtrFactory<Scorer> weak_ptr_factory_{this};
Expand Down