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

Issue 164333007: Switch guest profile from forced-incognito to UI mods like ChromeOS. (Closed)

Created:
6 years, 10 months ago by bcwhite
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, extensions-reviews_chromium.org, rginda+watch_chromium.org, dbeam+watch-options_chromium.org, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Switch guest profile from forced-incognito to UI mods like ChromeOS. There have been issues with the way forced-incognito causes some things to behave and various menu items to appear. We now follow the ChromeOS model (merging several instances of conditional ChromeOS code) of simply using the incognito profile when opening the window. This change should fix some of the issues being seen in the field, simplify Guest profiles going forward, bring Desktop and ChromeOS experience closer together, and generally reduce Technical Debt from special-case scenarios. BUG=103846 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251803

Patch Set 1 #

Patch Set 2 : fix compile error on ChromeOS #

Total comments: 6

Patch Set 3 : address review comments by noms #

Patch Set 4 : fixed typo in function call #

Total comments: 8

Patch Set 5 : addressed review comments by msw #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -35 lines) Patch
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
bcwhite
6 years, 10 months ago (2014-02-14 19:14:51 UTC) #1
bcwhite
yoz@chromium.org: Please review changes in chrome/browser/extensions/ noms@chromium.org: Please review changes in chrome/browser/profiles/ msw@chromium.org: Please review ...
6 years, 10 months ago (2014-02-14 19:18:29 UTC) #2
noms (inactive)
https://codereview.chromium.org/164333007/diff/70001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/164333007/diff/70001/chrome/browser/profiles/profile_manager.cc#newcode1111 chrome/browser/profiles/profile_manager.cc:1111: IncognitoModePrefs::ENABLED); I think this is the default behaviour, so ...
6 years, 10 months ago (2014-02-14 19:28:09 UTC) #3
bcwhite
https://codereview.chromium.org/164333007/diff/70001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/164333007/diff/70001/chrome/browser/profiles/profile_manager.cc#newcode1111 chrome/browser/profiles/profile_manager.cc:1111: IncognitoModePrefs::ENABLED); It has to be present to switch existing ...
6 years, 10 months ago (2014-02-14 19:46:36 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm I guess there are still changes needed in IsGuestSession() and SwitchToGuestProfile()?
6 years, 10 months ago (2014-02-14 20:15:31 UTC) #5
Yoyo Zhou
extensions LGTM
6 years, 10 months ago (2014-02-14 20:45:50 UTC) #6
bcwhite
> I guess there are still changes needed in IsGuestSession() and > SwitchToGuestProfile()? No changes ...
6 years, 10 months ago (2014-02-14 21:18:01 UTC) #7
msw
c/b/ui lgtm with nits. https://codereview.chromium.org/164333007/diff/170002/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/164333007/diff/170002/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode126 chrome/browser/extensions/chrome_extensions_browser_client.cc:126: if ((static_cast<Profile*>(context))->IsGuestSession() && nit: convert ...
6 years, 10 months ago (2014-02-15 00:30:51 UTC) #8
bcwhite
https://codereview.chromium.org/164333007/diff/170002/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/164333007/diff/170002/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode126 chrome/browser/extensions/chrome_extensions_browser_client.cc:126: if ((static_cast<Profile*>(context))->IsGuestSession() && On 2014/02/15 00:30:52, msw wrote: > ...
6 years, 10 months ago (2014-02-18 15:19:36 UTC) #9
noms (inactive)
profiles lgtm
6 years, 10 months ago (2014-02-18 15:20:01 UTC) #10
bcwhite
The CQ bit was checked by bcwhite@chromium.org
6 years, 10 months ago (2014-02-18 15:20:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/164333007/210001
6 years, 10 months ago (2014-02-18 15:20:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/164333007/210001
6 years, 10 months ago (2014-02-18 18:20:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/164333007/210001
6 years, 10 months ago (2014-02-18 18:28:23 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-18 19:07:15 UTC) #15
Message was sent while issue was closed.
Change committed as 251803

Powered by Google App Engine
This is Rietveld 408576698