| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('settings', function() { | 5 cr.define('settings', function() { |
| 6 /** @interface */ | 6 /** @interface */ |
| 7 function ResetBrowserProxy() {} | 7 function ResetBrowserProxy() {} |
| 8 | 8 |
| 9 ResetBrowserProxy.prototype = { | 9 ResetBrowserProxy.prototype = { |
| 10 /** | 10 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 /** | 22 /** |
| 23 * A method to be called when the reset profile banner is hidden. | 23 * A method to be called when the reset profile banner is hidden. |
| 24 */ | 24 */ |
| 25 onHideResetProfileBanner: function() {}, | 25 onHideResetProfileBanner: function() {}, |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * A method to be called when the reset profile dialog is shown. | 28 * A method to be called when the reset profile dialog is shown. |
| 29 */ | 29 */ |
| 30 onShowResetProfileDialog: function() {}, | 30 onShowResetProfileDialog: function() {}, |
| 31 | 31 |
| 32 /** |
| 33 * Gets the current settings (about to be reset) reported to Google for |
| 34 * analysis. |
| 35 * @return {!Promise<!Array<{key:string, value:string}>} |
| 36 */ |
| 37 getReportedSettings: function() {}, |
| 38 |
| 32 <if expr="chromeos"> | 39 <if expr="chromeos"> |
| 33 /** | 40 /** |
| 34 * A method to be called when the reset powerwash dialog is shown. | 41 * A method to be called when the reset powerwash dialog is shown. |
| 35 */ | 42 */ |
| 36 onPowerwashDialogShow: function() {}, | 43 onPowerwashDialogShow: function() {}, |
| 37 | 44 |
| 38 /** | 45 /** |
| 39 * Initiates a factory reset and restarts ChromeOS. | 46 * Initiates a factory reset and restarts ChromeOS. |
| 40 */ | 47 */ |
| 41 requestFactoryResetRestart: function() {}, | 48 requestFactoryResetRestart: function() {}, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 63 /** @override */ | 70 /** @override */ |
| 64 onHideResetProfileBanner: function() { | 71 onHideResetProfileBanner: function() { |
| 65 chrome.send('onHideResetProfileBanner'); | 72 chrome.send('onHideResetProfileBanner'); |
| 66 }, | 73 }, |
| 67 | 74 |
| 68 /** @override */ | 75 /** @override */ |
| 69 onShowResetProfileDialog: function() { | 76 onShowResetProfileDialog: function() { |
| 70 chrome.send('onShowResetProfileDialog'); | 77 chrome.send('onShowResetProfileDialog'); |
| 71 }, | 78 }, |
| 72 | 79 |
| 80 /** @override */ |
| 81 getReportedSettings: function() { |
| 82 return cr.sendWithPromise('getReportedSettings'); |
| 83 }, |
| 84 |
| 73 <if expr="chromeos"> | 85 <if expr="chromeos"> |
| 74 /** @override */ | 86 /** @override */ |
| 75 onPowerwashDialogShow: function() { | 87 onPowerwashDialogShow: function() { |
| 76 chrome.send('onPowerwashDialogShow'); | 88 chrome.send('onPowerwashDialogShow'); |
| 77 }, | 89 }, |
| 78 | 90 |
| 79 /** @override */ | 91 /** @override */ |
| 80 requestFactoryResetRestart: function() { | 92 requestFactoryResetRestart: function() { |
| 81 chrome.send('requestFactoryResetRestart'); | 93 chrome.send('requestFactoryResetRestart'); |
| 82 }, | 94 }, |
| 83 </if> | 95 </if> |
| 84 }; | 96 }; |
| 85 | 97 |
| 86 return { | 98 return { |
| 87 ResetBrowserProxyImpl: ResetBrowserProxyImpl, | 99 ResetBrowserProxyImpl: ResetBrowserProxyImpl, |
| 88 }; | 100 }; |
| 89 }); | 101 }); |
| OLD | NEW |