Chromium Code Reviews| 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 { |