Commit ba09493f authored by Xi Han's avatar Xi Han Committed by Commit Bot

[Instant Start] Shown Page info on Start Surface [2/2]

This CL fixes the wrong check of whether native initialization has done.
It fixes the missing of Page info on official build, which loads the
native library faster than the debug build.

Bug: 1137973
Change-Id: I397f2e1ba43a15ff26a1163b8a0acd4c847dccd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2535935Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Xi Han <hanxi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827258}
parent 58f01065
......@@ -47,7 +47,6 @@ import androidx.core.graphics.drawable.DrawableCompat;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.MathUtils;
import org.chromium.base.TraceEvent;
import org.chromium.base.library_loader.LibraryLoader;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.device.DeviceClassManager;
import org.chromium.chrome.browser.feature_engagement.TrackerFactory;
......@@ -1848,7 +1847,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC
// The URL focusing animator set shouldn't be populated before native initialization. It is
// possible that this function is called before native initialization when Instant Start
// is enabled.
if (LibraryLoader.getInstance().isInitialized()) {
if (isNativeLibraryReady()) {
triggerUrlFocusAnimation(inTabSwitcherMode && !urlHasFocus());
}
......
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