Index: chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js |
diff --git a/chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js b/chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js |
index c5b32bd9834ce36d81f883a9a75a5be7463b7bdb..6cb17f5f63aec8a75f0de9ad1ae68764ac9001ca 100644 |
--- a/chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js |
+++ b/chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js |
@@ -21,39 +21,34 @@ var AndroidAppsInfo; |
cr.define('settings', function() { |
/** @interface */ |
- function AndroidAppsBrowserProxy() {} |
- |
- AndroidAppsBrowserProxy.prototype = { |
- requestAndroidAppsInfo: function() {}, |
+ class AndroidAppsBrowserProxy { |
+ requestAndroidAppsInfo() {} |
/** |
* @param {boolean} keyboardAction True if the app was opened using a |
* keyboard action. |
*/ |
- showAndroidAppsSettings: function(keyboardAction) {}, |
- }; |
+ showAndroidAppsSettings(keyboardAction) {} |
+ } |
/** |
- * @constructor |
* @implements {settings.AndroidAppsBrowserProxy} |
*/ |
- function AndroidAppsBrowserProxyImpl() {} |
- |
- // The singleton instance_ can be replaced with a test version of this wrapper |
- // during testing. |
- cr.addSingletonGetter(AndroidAppsBrowserProxyImpl); |
- |
- AndroidAppsBrowserProxyImpl.prototype = { |
+ class AndroidAppsBrowserProxyImpl { |
/** @override */ |
- requestAndroidAppsInfo: function() { |
+ requestAndroidAppsInfo() { |
chrome.send('requestAndroidAppsInfo'); |
- }, |
+ } |
/** @override */ |
- showAndroidAppsSettings: function(keyboardAction) { |
+ showAndroidAppsSettings(keyboardAction) { |
chrome.send('showAndroidAppsSettings', [keyboardAction]); |
- }, |
- }; |
+ } |
+ } |
+ |
+ // The singleton instance_ can be replaced with a test version of this wrapper |
+ // during testing. |
+ cr.addSingletonGetter(AndroidAppsBrowserProxyImpl); |
return { |
AndroidAppsBrowserProxy: AndroidAppsBrowserProxy, |