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

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: 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..f5d6898a419d6afa27630eaacd4861e4cdd26e9f 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>}
+ */
+ hasProfileShortcut: function() {},
tommycli 2016/11/15 01:59:50 Since this is an async getter, maybe change this t
Moe 2016/11/15 16:03:10 Done.
+
+ /**
+ * 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 */
+ hasProfileShortcut: 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