[Chrome Home] Avoid restart if experiment enabled after FRE.

Desktop / Chromium - tedchoc [chromium.org] - 16 June 2017 18:07 EDT

When determining if Chrome Home is enabled, check if the native libraries have been initialized by the time the feature boolean is first read (i.e. because FRE already happened and init'd the browser process). If the libraries have been initialized, also check the finch flag value to determine if we should show Chrome home.

TEST=1.) Clear data, kill Chrome 2.) build/android/adb_chrome_public_command_line "--enable-features=ChromeHome" 3.) Start Chrome and proceed through FRE, see you are in Chrome Home w/o restarting. BUG=731295

Review-Url: https://codereview.chromium.org/2946493002 Cr-Commit-Position: refs/heads/master@{#480191}

fd3ce8c [Chrome Home] Avoid restart if experiment enabled after FRE.
.../org/chromium/chrome/browser/util/FeatureUtilities.java | 13 +++++++++++++
1 file changed, 13 insertions(+)

Upstream: git.chromium.org


  • Share