Commit b99022c3 authored by Olivier Yiptong's avatar Olivier Yiptong Committed by Commit Bot

FontAccess: Remove redundant ScriptPromiseResolver creation

This change removes a bug on Mac: a redundant ScriptPromiseResolver creation.

Bug: 1043306
Change-Id: I302255dad325c2cbca96bde07f414da689f635d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404260
Auto-Submit: Olivier Yiptong <oyiptong@chromium.org>
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805924}
parent ff2cc1b1
...@@ -33,8 +33,6 @@ ScriptPromise FontIterator::next(ScriptState* script_state) { ...@@ -33,8 +33,6 @@ ScriptPromise FontIterator::next(ScriptState* script_state) {
#if defined(OS_MAC) #if defined(OS_MAC)
remote_manager_->RequestPermission(WTF::Bind( remote_manager_->RequestPermission(WTF::Bind(
&FontIterator::DidGetPermissionResponse, WrapWeakPersistent(this))); &FontIterator::DidGetPermissionResponse, WrapWeakPersistent(this)));
pending_resolver_ =
MakeGarbageCollected<ScriptPromiseResolver>(script_state);
#else #else
remote_manager_->EnumerateLocalFonts(WTF::Bind( remote_manager_->EnumerateLocalFonts(WTF::Bind(
&FontIterator::DidGetEnumerationResponse, WrapWeakPersistent(this))); &FontIterator::DidGetEnumerationResponse, WrapWeakPersistent(this)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment