Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Issue 976553003: Fix Launcher crash in ChromeOS guest mode. (Closed)

Created:
5 years, 9 months ago by Matt Giuca
Modified:
5 years, 9 months ago
Reviewers:
tapted
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, calamity
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Launcher crash in ChromeOS guest mode. The CHECK-fail was introduced in r315272 (64121b7), 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 Committed: https://crrev.com/3bbe0ce70d70451c7af6a29beea198d2bcd06305 Cr-Commit-Position: refs/heads/master@{#319036}

Patch Set 1 #

Patch Set 2 : Fix compile warnings on Linux. #

Total comments: 15

Patch Set 3 : Respond to tapted comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -3 lines) Patch
M chrome/browser/ui/app_list/app_list_controller_browsertest.cc View 1 2 3 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.cc View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/start_page_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
Matt Giuca
5 years, 9 months ago (2015-03-03 08:35:03 UTC) #2
Matt Giuca
-calamity +tapted (Please treat as urgent; this really should be fixed in beta ASAP.)
5 years, 9 months ago (2015-03-04 02:34:24 UTC) #4
tapted
https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode235 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:235: }; nit: DISALLOW_COPY_AND_ASSIGN -- you'll need default constructor https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode241 ...
5 years, 9 months ago (2015-03-04 05:01:11 UTC) #5
Matt Giuca
https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode235 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:235: }; On 2015/03/04 05:01:10, tapted wrote: > nit: DISALLOW_COPY_AND_ASSIGN ...
5 years, 9 months ago (2015-03-04 06:07:06 UTC) #6
tapted
lgtm https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/start_page_service.cc File chrome/browser/ui/app_list/start_page_service.cc (right): https://codereview.chromium.org/976553003/diff/20001/chrome/browser/ui/app_list/start_page_service.cc#newcode96 chrome/browser/ui/app_list/start_page_service.cc:96: content::Source<Profile>(service_->profile()->GetOriginalProfile())); On 2015/03/04 06:07:05, Matt Giuca wrote: > ...
5 years, 9 months ago (2015-03-04 07:45:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976553003/40001
5 years, 9 months ago (2015-03-04 07:55:08 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-04 08:53:53 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 08:54:42 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3bbe0ce70d70451c7af6a29beea198d2bcd06305
Cr-Commit-Position: refs/heads/master@{#319036}

Powered by Google App Engine
This is Rietveld 408576698