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

Issue 863063002: Don't allow profile deletion in Metro mode. (Closed)

Created:
5 years, 11 months ago by noms (inactive)
Modified:
5 years, 11 months ago
Reviewers:
tapted, Evan Stade
CC:
chromium-reviews, dbeam+watch-options_chromium.org, dzhioev+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't allow profile deletion in Metro mode. Bad things happen if you delete the profile that started the Metro process (at best, you crash), since relaunching Metro with a new user is not supported. Hiding the button selectively depending on the profile selected is a bit weird, so in Metro mode, hide it for all profiles. BUG=448352 Committed: https://crrev.com/9a4fcc927bf745d6aab08440e22344b393246492 Cr-Commit-Position: refs/heads/master@{#313449}

Patch Set 1 : #

Patch Set 2 : remove spurious new lines #

Total comments: 10

Patch Set 3 : fix ifdefs #

Total comments: 4

Patch Set 4 : use the method that actually checks metro mode #

Patch Set 5 : js nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -4 lines) Patch
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options_profile_list.js View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
noms (inactive)
Hi Trent, Before I send it out for owners review, does this look okay from ...
5 years, 11 months ago (2015-01-23 21:12:35 UTC) #4
noms (inactive)
Hi Evan, This CL disables profile deletion in Win 8 metro mode. Please take a ...
5 years, 11 months ago (2015-01-26 15:19:21 UTC) #6
Evan Stade
https://codereview.chromium.org/863063002/diff/60001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/863063002/diff/60001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode613 chrome/browser/ui/webui/options/browser_options_handler.cc:613: values->SetBoolean("allowProfileDeletion", !base::win::IsMetroProcess()); don't you need some ifdefs
5 years, 11 months ago (2015-01-26 17:55:26 UTC) #7
noms (inactive)
https://codereview.chromium.org/863063002/diff/60001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/863063002/diff/60001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode613 chrome/browser/ui/webui/options/browser_options_handler.cc:613: values->SetBoolean("allowProfileDeletion", !base::win::IsMetroProcess()); On 2015/01/26 17:55:26, Evan Stade wrote: > ...
5 years, 11 months ago (2015-01-26 23:08:14 UTC) #10
tapted
Sorry for the delay! (long weekend over here..). https://codereview.chromium.org/863063002/diff/60001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/863063002/diff/60001/chrome/browser/resources/options/browser_options.js#newcode327 chrome/browser/resources/options/browser_options.js:327: profilesList.canDeleteItems ...
5 years, 11 months ago (2015-01-26 23:36:07 UTC) #11
Evan Stade
https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode615 chrome/browser/ui/webui/options/browser_options_handler.cc:615: allow_deletion = !base::win::IsMetroProcess(); you don't care about isSupervised any ...
5 years, 11 months ago (2015-01-27 00:06:58 UTC) #12
noms (inactive)
https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode615 chrome/browser/ui/webui/options/browser_options_handler.cc:615: allow_deletion = !base::win::IsMetroProcess(); On 2015/01/27 00:06:58, Evan Stade wrote: ...
5 years, 11 months ago (2015-01-27 00:36:10 UTC) #13
Evan Stade
https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/863063002/diff/120001/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode615 chrome/browser/ui/webui/options/browser_options_handler.cc:615: allow_deletion = !base::win::IsMetroProcess(); On 2015/01/27 00:36:10, Monica Dinculescu wrote: ...
5 years, 11 months ago (2015-01-27 01:59:36 UTC) #14
noms (inactive)
https://codereview.chromium.org/863063002/diff/60001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/863063002/diff/60001/chrome/browser/resources/options/browser_options.js#newcode327 chrome/browser/resources/options/browser_options.js:327: profilesList.canDeleteItems = true; On 2015/01/26 23:36:07, tapted wrote: > ...
5 years, 11 months ago (2015-01-28 02:20:14 UTC) #15
Evan Stade
lgtm
5 years, 11 months ago (2015-01-28 02:23:00 UTC) #16
tapted
lgtm
5 years, 11 months ago (2015-01-28 02:28:27 UTC) #17
noms (inactive)
Woohoo! Thanks!
5 years, 11 months ago (2015-01-28 03:23:28 UTC) #18
noms (inactive)
Woohoo! Thanks!
5 years, 11 months ago (2015-01-28 03:23:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/863063002/160001
5 years, 11 months ago (2015-01-28 03:24:49 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years, 11 months ago (2015-01-28 04:57:31 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-28 04:58:33 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9a4fcc927bf745d6aab08440e22344b393246492
Cr-Commit-Position: refs/heads/master@{#313449}

Powered by Google App Engine
This is Rietveld 408576698