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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 542843002: [Win] Don't show the add/remove desktop shortcut for single users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move code to a better place Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index 41689f80a6da7c7bc0cc5074cfee7277a5f75cda..209c73db6f381ef1caf20a2d2a52fa94b7144f60 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -457,6 +457,10 @@ void ManageProfileHandler::RequestHasProfileShortcuts(
if (profile_index == std::string::npos)
return;
+ // Don't show the add/remove desktop shortcut button in the single user case.
+ if (cache.GetNumberOfProfiles() <= 1)
+ return;
+
const base::FilePath profile_path =
cache.GetPathOfProfileAtIndex(profile_index);
ProfileShortcutManager* shortcut_manager =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698