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

Unified Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc

Issue 2498153002: [MD Settings][MD User Manager] create/manage profile desktop shortcut (Windows only) (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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
Index: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
index 1da6ea6558c823f07813a2812baff1001a3edae4..163557664f86df39a8701e8abc9bc73d7c715dbb 100644
--- a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
+++ b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
@@ -73,6 +73,10 @@ SigninCreateProfileHandler::~SigninCreateProfileHandler() {
void SigninCreateProfileHandler::GetLocalizedValues(
base::DictionaryValue* localized_strings) {
localized_strings->SetString(
+ "createDesktopShortcutLabel",
+ l10n_util::GetStringUTF16(
+ IDS_PROFILES_CREATE_DESKTOP_SHORTCUT_LABEL));
+ localized_strings->SetString(
"manageProfilesSupervisedSignedInLabel",
l10n_util::GetStringUTF16(
IDS_PROFILES_CREATE_SUPERVISED_MULTI_SIGNED_IN_LABEL));
@@ -354,9 +358,10 @@ void SigninCreateProfileHandler::CreateShortcutAndShowSuccess(
Profile* custodian_profile,
Profile* profile) {
if (create_shortcut) {
+ DCHECK(ProfileShortcutManager::IsFeatureEnabled());
ProfileShortcutManager* shortcut_manager =
g_browser_process->profile_manager()->profile_shortcut_manager();
-
+ DCHECK(shortcut_manager);
if (shortcut_manager)
shortcut_manager->CreateProfileShortcut(profile->GetPath());
}
« no previous file with comments | « chrome/browser/ui/webui/signin/md_user_manager_ui.cc ('k') | chrome/test/data/webui/md_user_manager/create_profile_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698