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

Issue 9432003: Disable multi-profile UI in managed mode. (Closed)

Created:
8 years, 10 months ago by Bernhard Bauer
Modified:
8 years, 9 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, achuith+watch_chromium.org, Joao da Silva, Chris Evans
Visibility:
Public.

Description

Disable multi-profile UI in managed mode. If the browser is in managed mode, certain preferences in the profile can be restricted, so we need to make sure that the user can't switch to a different profile or add a new one. BUG=115103 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125264

Patch Set 1 #

Patch Set 2 : add notreached() #

Total comments: 7

Patch Set 3 : review #

Total comments: 4

Patch Set 4 : review #

Patch Set 5 : review #

Total comments: 2

Patch Set 6 : fix #

Patch Set 7 : revert #

Patch Set 8 : git try --root src #

Patch Set 9 : . #

Total comments: 3

Patch Set 10 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/manage_profile_handler2.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Joao da Silva
Clicked the wrong link in the email and had a look at this one too. ...
8 years, 10 months ago (2012-02-23 12:05:14 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/9432003/diff/5003/chrome/browser/profiles/avatar_menu_model.cc File chrome/browser/profiles/avatar_menu_model.cc (right): http://codereview.chromium.org/9432003/diff/5003/chrome/browser/profiles/avatar_menu_model.cc#newcode1 chrome/browser/profiles/avatar_menu_model.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 10 months ago (2012-02-23 12:14:36 UTC) #2
Joao da Silva
lgtm. I trust you'll test the patch before landing though :-) http://codereview.chromium.org/9432003/diff/5003/chrome/browser/profiles/avatar_menu_model.cc File chrome/browser/profiles/avatar_menu_model.cc (right): ...
8 years, 10 months ago (2012-02-23 15:28:18 UTC) #3
Bernhard Bauer
On 2012/02/23 15:28:18, Joao da Silva wrote: > lgtm. I trust you'll test the patch ...
8 years, 10 months ago (2012-02-23 16:27:00 UTC) #4
Bernhard Bauer
On 2012/02/23 16:27:00, Bernhard Bauer wrote: > On 2012/02/23 15:28:18, Joao da Silva wrote: > ...
8 years, 10 months ago (2012-02-27 19:11:14 UTC) #5
James Hawkins
lgtm http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode702 chrome/browser/ui/webui/options2/browser_options_handler2.cc:702: return; Don't 'handle' NOTREACHEDs by returning.
8 years, 9 months ago (2012-03-01 12:42:33 UTC) #6
James Hawkins
Oops, I didn't mean to LG yet :-/ On 2012/03/01 12:42:33, James Hawkins wrote: > ...
8 years, 9 months ago (2012-03-01 12:42:50 UTC) #7
Bernhard Bauer
http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode702 chrome/browser/ui/webui/options2/browser_options_handler2.cc:702: return; On 2012/03/01 12:42:33, James Hawkins wrote: > Don't ...
8 years, 9 months ago (2012-03-01 16:08:32 UTC) #8
James Hawkins
http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode702 chrome/browser/ui/webui/options2/browser_options_handler2.cc:702: return; On 2012/03/01 16:08:32, Bernhard Bauer wrote: > On ...
8 years, 9 months ago (2012-03-01 19:51:36 UTC) #9
Bernhard Bauer
http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode702 chrome/browser/ui/webui/options2/browser_options_handler2.cc:702: return; On 2012/03/01 19:51:36, James Hawkins wrote: > On ...
8 years, 9 months ago (2012-03-01 23:02:16 UTC) #10
James Hawkins
+cevans On 2012/03/01 23:02:16, Bernhard Bauer wrote: > http://codereview.chromium.org/9432003/diff/9003/chrome/browser/ui/webui/options2/browser_options_handler2.cc > File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): > > ...
8 years, 9 months ago (2012-03-02 22:58:03 UTC) #11
bauerb at google
On Fri Mar 02 23:58:03 GMT+100 2012, <jhawkins@chromium.org> wrote: > +cevans > > On 2012/03/01 ...
8 years, 9 months ago (2012-03-02 23:49:30 UTC) #12
James Hawkins
On 2012/03/02 23:49:30, please use chromium account wrote: > On Fri Mar 02 23:58:03 GMT+100 ...
8 years, 9 months ago (2012-03-03 00:25:26 UTC) #13
Bernhard Bauer
On 2012/03/03 00:25:26, James Hawkins wrote: > On 2012/03/02 23:49:30, please use chromium account wrote: ...
8 years, 9 months ago (2012-03-05 17:41:11 UTC) #14
James Hawkins
lgtm
8 years, 9 months ago (2012-03-05 18:12:32 UTC) #15
sail
Hi Bernhard, could you add the following information to the CL and the issue: - ...
8 years, 9 months ago (2012-03-05 18:30:52 UTC) #16
sail
+rsesek since he wrote AvatarMenuModel
8 years, 9 months ago (2012-03-05 18:32:01 UTC) #17
Robert Sesek
lgtm http://codereview.chromium.org/9432003/diff/29001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9432003/diff/29001/chrome/browser/profiles/profile_manager.cc#newcode721 chrome/browser/profiles/profile_manager.cc:721: prefs->RegisterBooleanPref(prefs::kInManagedMode, false); Is this pref not already registered?
8 years, 9 months ago (2012-03-05 18:33:48 UTC) #18
Bernhard Bauer
On 2012/03/05 18:30:52, sail wrote: > Hi Bernhard, could you add the following information to ...
8 years, 9 months ago (2012-03-05 22:08:54 UTC) #19
Bernhard Bauer
OK, I rebased my CL on top of Pam's and moved the managed mode check ...
8 years, 9 months ago (2012-03-06 17:51:12 UTC) #20
sail1
Do you need any addition code to track the status of the pref and update ...
8 years, 9 months ago (2012-03-06 17:59:13 UTC) #21
bauerb at google
Yeah, so far I've been using a separate notification, but they really are used mostly ...
8 years, 9 months ago (2012-03-06 18:04:53 UTC) #22
sail
http://codereview.chromium.org/9432003/diff/39029/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/39029/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode1007 chrome/browser/ui/webui/options2/browser_options_handler2.cc:1007: if (g_browser_process->local_state()->GetBoolean(prefs::kInManagedMode)) use ProfileManager::IsMultipleProfilesEnabled() instead? http://codereview.chromium.org/9432003/diff/39029/chrome/browser/ui/webui/options2/manage_profile_handler2.cc File chrome/browser/ui/webui/options2/manage_profile_handler2.cc (right): ...
8 years, 9 months ago (2012-03-06 19:12:50 UTC) #23
Bernhard Bauer
http://codereview.chromium.org/9432003/diff/39029/chrome/browser/ui/webui/options2/browser_options_handler2.cc File chrome/browser/ui/webui/options2/browser_options_handler2.cc (right): http://codereview.chromium.org/9432003/diff/39029/chrome/browser/ui/webui/options2/browser_options_handler2.cc#newcode1007 chrome/browser/ui/webui/options2/browser_options_handler2.cc:1007: if (g_browser_process->local_state()->GetBoolean(prefs::kInManagedMode)) On 2012/03/06 19:12:50, sail wrote: > use ...
8 years, 9 months ago (2012-03-06 19:29:41 UTC) #24
sail
lgtm
8 years, 9 months ago (2012-03-06 19:38:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/9432003/44004
8 years, 9 months ago (2012-03-06 19:55:06 UTC) #26
commit-bot: I haz the power
Try job failure for 9432003-44004 (retry) on linux_rel for steps "safe_browsing_tests, browser_tests, ui_tests". It's a ...
8 years, 9 months ago (2012-03-06 20:36:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/9432003/44004
8 years, 9 months ago (2012-03-06 21:11:03 UTC) #28
commit-bot: I haz the power
Try job failure for 9432003-44004 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-06 21:43:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/9432003/44004
8 years, 9 months ago (2012-03-06 22:32:05 UTC) #30
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 00:25:59 UTC) #31
Change committed as 125264

Powered by Google App Engine
This is Rietveld 408576698