Commit eba19850 authored by Clark DuVall's avatar Clark DuVall Committed by Commit Bot

Fix WebLayer crashing in Monochrome

WebLayer was crashing in Monochrome because BundleUtils.setIsBundle()
was never called.

This looks like it was caused by http://crrev.com/c/1989243.

Bug: 901465
Change-Id: I6f2220b3def3d1783677f8a48b5b4555fd896bc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036267
Commit-Queue: Bo <boliu@chromium.org>
Reviewed-by: default avatarBo <boliu@chromium.org>
Auto-Submit: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738394}
parent 1543e7b4
......@@ -20,6 +20,7 @@ import android.webkit.WebViewDelegate;
import android.webkit.WebViewFactory;
import org.chromium.base.BuildInfo;
import org.chromium.base.BundleUtils;
import org.chromium.base.CommandLine;
import org.chromium.base.ContentUriUtils;
import org.chromium.base.ContextUtils;
......@@ -184,6 +185,7 @@ public final class WebLayerImpl extends IWebLayer.Stub {
R.onResourcesLoaded(resourcesPackageId);
ResourceBundle.setAvailablePakLocales(new String[] {}, ProductConfig.UNCOMPRESSED_LOCALES);
BundleUtils.setIsBundle(ProductConfig.IS_BUNDLE);
setChildProcessCreationParams(appContext, packageInfo.packageName);
......
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