Index: chrome/browser/resources/settings/lifetime_browser_proxy.js |
diff --git a/chrome/browser/resources/settings/lifetime_browser_proxy.js b/chrome/browser/resources/settings/lifetime_browser_proxy.js |
index b9915c0216d976e4abed9a81e3dd335a8fb4fbe0..d97ac2d6b390c5347eaab1c60ab5b22212499186 100644 |
--- a/chrome/browser/resources/settings/lifetime_browser_proxy.js |
+++ b/chrome/browser/resources/settings/lifetime_browser_proxy.js |
@@ -4,54 +4,50 @@ |
cr.define('settings', function() { |
/** @interface */ |
- function LifetimeBrowserProxy() {} |
- |
- LifetimeBrowserProxy.prototype = { |
+ class LifetimeBrowserProxy { |
// Triggers a browser restart. |
- restart: function() {}, |
+ restart() {} |
// Triggers a browser relaunch. |
- relaunch: function() {}, |
+ relaunch() {} |
// <if expr="chromeos"> |
// First signs out current user and then performs a restart. |
- signOutAndRestart: function() {}, |
+ signOutAndRestart() {} |
// Triggers a factory reset. |
- factoryReset: function() {}, |
+ factoryReset() {} |
// </if> |
- }; |
+ } |
/** |
- * @constructor |
* @implements {settings.LifetimeBrowserProxy} |
*/ |
- function LifetimeBrowserProxyImpl() {} |
- cr.addSingletonGetter(LifetimeBrowserProxyImpl); |
- |
- LifetimeBrowserProxyImpl.prototype = { |
+ class LifetimeBrowserProxyImpl { |
/** @override */ |
- restart: function() { |
+ restart() { |
chrome.send('restart'); |
- }, |
+ } |
/** @override */ |
- relaunch: function() { |
+ relaunch() { |
chrome.send('relaunch'); |
- }, |
+ } |
// <if expr="chromeos"> |
/** @override */ |
- signOutAndRestart: function() { |
+ signOutAndRestart() { |
chrome.send('signOutAndRestart'); |
- }, |
+ } |
/** @override */ |
- factoryReset: function() { |
+ factoryReset() { |
chrome.send('factoryReset'); |
- }, |
+ } |
// </if> |
- }; |
+ } |
+ |
+ cr.addSingletonGetter(LifetimeBrowserProxyImpl); |
return { |
LifetimeBrowserProxy: LifetimeBrowserProxy, |