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

Issue 691063002: Reopen a Guest browser and not the User Manager if another Guest browser is already open. (Closed)

Created:
6 years, 1 month ago by noms (inactive)
Modified:
6 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reopen a Guest browser and not the User Manager if another Guest browser is already open. We currently have code that ensures that if the last used profile is Guest, we should open the User Manager. This doesn't work if, for example, you download a file in the Guest browser, and then click on it top open it. In this case, it's fine to open a new Guest browser window, as one already exists (and opening the User Manager is a very weird experience) BUG=423118 TEST=Start Chrome with --enable-new-avatar-menu. From the avatar menu, choose "Switch person" and launch a new Guest browser. In the Guest browser, download a file, and then click on it from the dwonload shelf at the bottom of the browser. The file should open in a new tab of the Guest window. Committed: https://crrev.com/421a46965a0acd3180d0706a6dad445b5b11e164 Cr-Commit-Position: refs/heads/master@{#302431}

Patch Set 1 #

Total comments: 2

Patch Set 2 : s/size_t/bool #

Patch Set 3 : whitespace #

Total comments: 2

Patch Set 4 : boolean nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
noms (inactive)
Hi Scott, This should fix another guest browser edge case (being less strict about force-opening ...
6 years, 1 month ago (2014-10-30 18:56:42 UTC) #2
sky
https://codereview.chromium.org/691063002/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/691063002/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc#newcode642 chrome/browser/ui/startup/startup_browser_creator.cc:642: last_used_profile->GetOffTheRecordProfile()) : -1; I suspect the -1 to a ...
6 years, 1 month ago (2014-10-30 21:17:51 UTC) #3
noms (inactive)
https://codereview.chromium.org/691063002/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/691063002/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc#newcode642 chrome/browser/ui/startup/startup_browser_creator.cc:642: last_used_profile->GetOffTheRecordProfile()) : -1; On 2014/10/30 21:17:51, sky wrote: > ...
6 years, 1 month ago (2014-10-31 19:52:10 UTC) #4
sky
LGTM https://codereview.chromium.org/691063002/diff/40001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/691063002/diff/40001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode640 chrome/browser/ui/startup/startup_browser_creator.cc:640: bool has_guest_browsers = last_used_profile->IsGuestSession() ? nit: = last_used_profile->IsGuestSession() ...
6 years, 1 month ago (2014-10-31 22:39:45 UTC) #5
noms (inactive)
Thanks so much! https://codereview.chromium.org/691063002/diff/40001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/691063002/diff/40001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode640 chrome/browser/ui/startup/startup_browser_creator.cc:640: bool has_guest_browsers = last_used_profile->IsGuestSession() ? On ...
6 years, 1 month ago (2014-11-03 15:05:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691063002/60001
6 years, 1 month ago (2014-11-03 15:05:30 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-03 15:49:47 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 15:50:27 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/421a46965a0acd3180d0706a6dad445b5b11e164
Cr-Commit-Position: refs/heads/master@{#302431}

Powered by Google App Engine
This is Rietveld 408576698