| 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 {
|
|
|