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

Issue 2927853002: Force guest profiles to return default startup prefs. (Closed)

Created:
3 years, 6 months ago by shrike
Modified:
3 years, 6 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Force guest profiles to return default startup prefs. Crash reports for https://crbug.com/723414 show a crash in a CHECK() of profile type being used to create a new browser window via Browser::Browser(), specifically: CHECK(!profile_->IsGuestSession() || profile_->IsOffTheRecord()) << "Only off the record browser may be opened in guest mode"; This cl forces SessionStartupPref::GetStartupPref() to return default startup prefs for guest profiles. R=sky@chromium.org BUG=723414 Review-Url: https://codereview.chromium.org/2927853002 Cr-Commit-Position: refs/heads/master@{#480947} Committed: https://chromium.googlesource.com/chromium/src/+/9262aba8fec57bed8ce2256574e0e38ad53ae917

Patch Set 1 #

Total comments: 2

Patch Set 2 : Force guest profiles to return default startup prefs. #

Total comments: 4

Patch Set 3 : Address feedback. #

Patch Set 4 : Fix error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/browser/prefs/session_startup_pref.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 35 (18 generated)
shrike
Hello sky@ - you are listed as owner, but I'm not sure if someone else ...
3 years, 6 months ago (2017-06-07 18:44:41 UTC) #3
sky
https://codereview.chromium.org/2927853002/diff/1/chrome/browser/sessions/session_restore.cc File chrome/browser/sessions/session_restore.cc (right): https://codereview.chromium.org/2927853002/diff/1/chrome/browser/sessions/session_restore.cc#newcode91 chrome/browser/sessions/session_restore.cc:91: return profile->IsGuestSession() ? profile->GetOffTheRecordProfile() I'm a little confused by ...
3 years, 6 months ago (2017-06-07 19:21:41 UTC) #6
shrike
https://codereview.chromium.org/2927853002/diff/1/chrome/browser/sessions/session_restore.cc File chrome/browser/sessions/session_restore.cc (right): https://codereview.chromium.org/2927853002/diff/1/chrome/browser/sessions/session_restore.cc#newcode91 chrome/browser/sessions/session_restore.cc:91: return profile->IsGuestSession() ? profile->GetOffTheRecordProfile() On 2017/06/07 19:21:40, sky wrote: ...
3 years, 6 months ago (2017-06-07 20:19:05 UTC) #7
shrike
avi@ - are you someone who can comment on the correctness of this fix? I ...
3 years, 6 months ago (2017-06-07 21:53:34 UTC) #9
Avi (use Gerrit)
On 2017/06/07 21:53:34, shrike wrote: > avi@ - are you someone who can comment on ...
3 years, 6 months ago (2017-06-07 21:58:53 UTC) #10
sky
+merlman: Anthony suggested we contact you. We're trying to figure out expectations around guest sessions ...
3 years, 6 months ago (2017-06-07 23:41:35 UTC) #13
shrike
On 2017/06/07 23:41:35, sky wrote: > +merlman: Anthony suggested we contact you. We're trying to ...
3 years, 6 months ago (2017-06-08 00:34:43 UTC) #14
Mike Lerman
On 2017/06/08 00:34:43, shrike wrote: > On 2017/06/07 23:41:35, sky wrote: > > +merlman: Anthony ...
3 years, 6 months ago (2017-06-08 13:35:10 UTC) #15
sky
Thanks for the details! Shrike, the easy fix may be to force SessionStartupPref <https://cs.chromium.org/chromium/src/chrome/browser/prefs/session_startup_pref.h?l=21&ct=xref_jump_to_def&gsn=SessionStartupPref> ::GetStartupPref ...
3 years, 6 months ago (2017-06-08 19:37:12 UTC) #16
shrike
On 2017/06/08 19:37:12, sky wrote: > Thanks for the details! > Shrike, the easy fix ...
3 years, 6 months ago (2017-06-20 00:49:12 UTC) #22
sky
https://codereview.chromium.org/2927853002/diff/20001/chrome/browser/prefs/session_startup_pref.cc File chrome/browser/prefs/session_startup_pref.cc (right): https://codereview.chromium.org/2927853002/diff/20001/chrome/browser/prefs/session_startup_pref.cc#newcode105 chrome/browser/prefs/session_startup_pref.cc:105: // If a guest profile, force a return of ...
3 years, 6 months ago (2017-06-20 16:45:28 UTC) #23
shrike
PTAL https://codereview.chromium.org/2927853002/diff/20001/chrome/browser/prefs/session_startup_pref.cc File chrome/browser/prefs/session_startup_pref.cc (right): https://codereview.chromium.org/2927853002/diff/20001/chrome/browser/prefs/session_startup_pref.cc#newcode105 chrome/browser/prefs/session_startup_pref.cc:105: // If a guest profile, force a return ...
3 years, 6 months ago (2017-06-20 18:01:18 UTC) #24
sky
LGTM
3 years, 6 months ago (2017-06-20 18:15:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2927853002/40001
3 years, 6 months ago (2017-06-20 18:36:23 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/445651)
3 years, 6 months ago (2017-06-20 18:49:22 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2927853002/60001
3 years, 6 months ago (2017-06-20 19:16:29 UTC) #32
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 20:45:41 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9262aba8fec57bed8ce2256574e0...

Powered by Google App Engine
This is Rietveld 408576698