Fix Launcher crash in ChromeOS guest mode.
The CHECK-fail was introduced in r315272 (64121b7f), which switched the app list to run with the "original profile" rather than the incognito profile. Partially reverted that CL so that the app list runs with the incognito profile, and fixed StartPageService to correctly use the incognito profile (rather than being null when the app list profile is incognito), which addresses the original issue (http://crbug.com/440484). Had to work around DCHECK on shutdown in StartPageService due to crbug.com/463419. Added a DCHECK to catch use of non-incognito profiles in guest mode early (without having to select a search result to trigger the crash). Added AppListControllerGuestModeBrowserTest to test opening the app list in guest mode. BUG=460437,440484 Review URL: https://codereview.chromium.org/976553003 Cr-Commit-Position: refs/heads/master@{#319036}
Showing
Please register or sign in to comment