Commit 157c155b authored by Mehran Mahmoudi's avatar Mehran Mahmoudi Committed by Commit Bot

[Paint Preview] Fix failed assertion in PseudoTab

This assertion can fail because this path is now also accessible if
PAINT_PREVIEW_SHOW_ON_STARTUP flag is enabled.
It was added here: crrev.com/c/2472432

Bug: 1134752
Change-Id: I20d8937b24de77c366a8bf552a68ff787d488959
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485395
Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org>
Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818561}
parent d22bdda1
...@@ -314,7 +314,8 @@ public class PseudoTab { ...@@ -314,7 +314,8 @@ public class PseudoTab {
} }
private static void readAllPseudoTabsFromStateFile() { private static void readAllPseudoTabsFromStateFile() {
assert CachedFeatureFlags.isEnabled(ChromeFeatureList.INSTANT_START); assert CachedFeatureFlags.isEnabled(ChromeFeatureList.INSTANT_START)
|| CachedFeatureFlags.isEnabled(ChromeFeatureList.PAINT_PREVIEW_SHOW_ON_STARTUP);
if (sReadStateFile) return; if (sReadStateFile) return;
sReadStateFile = true; sReadStateFile = true;
......
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