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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.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/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 13bcfe07774fee5ae1a8b3e4cc4011896f87ec07..4b6ba5b4c07db179d698f5234bfb679a8809bc2a 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/plugins/plugin_utils.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
@@ -1072,6 +1073,7 @@ void AddPeopleStrings(content::WebUIDataSource* html_source) {
#else // !defined(OS_CHROMEOS)
{"domainManagedProfile", IDS_SETTINGS_PEOPLE_DOMAIN_MANAGED_PROFILE},
{"editPerson", IDS_SETTINGS_EDIT_PERSON},
+ {"showShortcutLabel", IDS_SETTINGS_PROFILE_SHORTCUT_TOGGLE_LABEL},
#endif // defined(OS_CHROMEOS)
{"syncOverview", IDS_SETTINGS_SYNC_OVERVIEW},
{"syncSignin", IDS_SETTINGS_SYNC_SIGNIN},
@@ -1174,6 +1176,9 @@ void AddPeopleStrings(content::WebUIDataSource* html_source) {
html_source->AddString("activityControlsUrl",
chrome::kGoogleAccountActivityControlsURL);
+
+ html_source->AddBoolean("profileShortcutsEnabled",
+ ProfileShortcutManager::IsFeatureEnabled());
}
void AddPrintingStrings(content::WebUIDataSource* html_source) {

Powered by Google App Engine
This is Rietveld 408576698