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

Issue 542843002: [Win] Don't show the add/remove desktop shortcut for single users. (Closed)

Created:
6 years, 3 months ago by noms (inactive)
Modified:
6 years, 3 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Win] Don't show the add/remove desktop shortcut for single users. If there's a single user in chrome://settings, you can navigate to chrome://settings/manageProfile to edit it (even though the UI doesn't always let you). In this case, however, we shouldn't display the add/remove desktop shortcut button in the manageProfile overlay (since the shortcut for single users is a non-profile generic Chrome shortcut) BUG=409735 TEST=Start Chrome. Ensure you only have one profile. Go to chrome://settings/manageProfile. There shouldn't be an add/remove shortcut button. Committed: https://crrev.com/11ae275b8b1b06b5bd2f85760a050fc9b6c58c99 Cr-Commit-Position: refs/heads/master@{#293804}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : review comments #

Total comments: 4

Patch Set 3 : move code to a better place #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
noms (inactive)
Cleaning up the manageProfile overlay a little, since we've enabled always showing the Users table. ...
6 years, 3 months ago (2014-09-04 21:24:13 UTC) #3
Dan Beam
https://codereview.chromium.org/542843002/diff/20001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/20001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode498 chrome/browser/ui/webui/options/manage_profile_handler.cc:498: void ManageProfileHandler::OnHasProfileShortcuts(bool has_shortcuts) { i'm slightly more partial to ...
6 years, 3 months ago (2014-09-04 22:59:09 UTC) #4
noms (inactive)
https://codereview.chromium.org/542843002/diff/20001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/20001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode498 chrome/browser/ui/webui/options/manage_profile_handler.cc:498: void ManageProfileHandler::OnHasProfileShortcuts(bool has_shortcuts) { You can manually navigate to ...
6 years, 3 months ago (2014-09-05 14:54:41 UTC) #5
Dan Beam
https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode499 chrome/browser/ui/webui/options/manage_profile_handler.cc:499: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); what happened to the flag check?
6 years, 3 months ago (2014-09-05 19:19:15 UTC) #6
noms (inactive)
https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode499 chrome/browser/ui/webui/options/manage_profile_handler.cc:499: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); Maybe I misunderstood your reply, but I thought ...
6 years, 3 months ago (2014-09-05 19:50:37 UTC) #7
Dan Beam
https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode499 chrome/browser/ui/webui/options/manage_profile_handler.cc:499: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2014/09/05 19:50:37, Monica Dinculescu wrote: > Maybe ...
6 years, 3 months ago (2014-09-05 22:16:43 UTC) #8
noms (inactive)
https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc File chrome/browser/ui/webui/options/manage_profile_handler.cc (right): https://codereview.chromium.org/542843002/diff/40001/chrome/browser/ui/webui/options/manage_profile_handler.cc#newcode499 chrome/browser/ui/webui/options/manage_profile_handler.cc:499: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); Initially, in manage_profile_overlay.js, in didShowPage, we have $('remove-shortcut-button').hidden ...
6 years, 3 months ago (2014-09-08 14:30:18 UTC) #10
Dan Beam
lgtm
6 years, 3 months ago (2014-09-08 17:54:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/542843002/80001
6 years, 3 months ago (2014-09-08 18:02:29 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:80001) as a28db8a8c779cce237d17b6134c8476ade35c2da
6 years, 3 months ago (2014-09-08 22:58:19 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:48:44 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/11ae275b8b1b06b5bd2f85760a050fc9b6c58c99
Cr-Commit-Position: refs/heads/master@{#293804}

Powered by Google App Engine
This is Rietveld 408576698