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

Unified Diff: chrome/browser/resources/settings/people_page/manage_profile_browser_proxy.js

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/resources/settings/people_page/manage_profile_browser_proxy.js
diff --git a/chrome/browser/resources/settings/people_page/manage_profile_browser_proxy.js b/chrome/browser/resources/settings/people_page/manage_profile_browser_proxy.js
index e1b8a4368f61f3452b96eb2cc10800f9922ecf62..0a96f0ec36cb6217429e4a735e6f2b3d2b310795 100644
--- a/chrome/browser/resources/settings/people_page/manage_profile_browser_proxy.js
+++ b/chrome/browser/resources/settings/people_page/manage_profile_browser_proxy.js
@@ -23,6 +23,22 @@ cr.define('settings', function() {
* @param {!string} name The new profile name.
*/
setProfileIconAndName: function(iconUrl, name) {},
+
+ /**
+ * Returns whether the current profile has a shortcut.
+ * @return {!Promise<boolean>}
+ */
+ getHasProfileShortcut: function() {},
+
+ /**
+ * Adds a shortcut for the current profile.
+ */
+ addProfileShortcut: function() {},
+
+ /**
+ * Removes the shortcut of the current profile.
+ */
+ removeProfileShortcut: function() {},
};
/**
@@ -44,6 +60,21 @@ cr.define('settings', function() {
setProfileIconAndName: function(iconUrl, name) {
chrome.send('setProfileIconAndName', [iconUrl, name]);
},
+
+ /** @override */
+ getHasProfileShortcut: function() {
+ return cr.sendWithPromise('requestHasProfileShortcuts');
+ },
+
+ /** @override */
+ addProfileShortcut: function() {
+ chrome.send('addProfileShortcut');
+ },
+
+ /** @override */
+ removeProfileShortcut: function() {
+ chrome.send('removeProfileShortcut');
+ },
};
return {

Powered by Google App Engine
This is Rietveld 408576698