Chromium Code Reviews| 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 AppearanceBrowserProxy() {} | 7 function AppearanceBrowserProxy() {} |
| 8 | 8 |
| 9 AppearanceBrowserProxy.prototype = { | 9 AppearanceBrowserProxy.prototype = { |
| 10 /** @return {!Promise<number>} */ | 10 /** @return {!Promise<number>} */ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 return new Promise(function(resolve) { | 51 return new Promise(function(resolve) { |
| 52 chrome.management.get(themeId, resolve); | 52 chrome.management.get(themeId, resolve); |
| 53 }); | 53 }); |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 /** @override */ | 56 /** @override */ |
| 57 isSupervised: function() { | 57 isSupervised: function() { |
| 58 return loadTimeData.getBoolean('isSupervised'); | 58 return loadTimeData.getBoolean('isSupervised'); |
| 59 }, | 59 }, |
| 60 | 60 |
| 61 // <if expr="chromeos"> | 61 // <if expr="chromeos"> |
|
dpapad
2017/03/24 01:39:31
+dbeam:
clang-format is causing those <if expr> st
scottchen
2017/03/24 20:48:54
Yeah I'm wondering the same thing too. I thought w
dpapad
2017/03/24 21:47:43
Since dbeam is OOO, can we revert those changes fo
scottchen
2017/03/24 22:56:30
Done.
| |
| 62 /** @override */ | 62 /** @override */ |
| 63 openWallpaperManager: function() { | 63 openWallpaperManager: function() { |
| 64 chrome.send('openWallpaperManager'); | 64 chrome.send('openWallpaperManager'); |
| 65 }, | 65 }, |
| 66 // </if> | 66 // </if> |
| 67 | 67 |
| 68 /** @override */ | 68 /** @override */ |
| 69 useDefaultTheme: function() { | 69 useDefaultTheme: function() { |
| 70 chrome.send('useDefaultTheme'); | 70 chrome.send('useDefaultTheme'); |
| 71 }, | 71 }, |
| 72 | 72 |
| 73 // <if expr="is_linux and not chromeos"> | 73 // <if expr="is_linux and not chromeos"> |
| 74 /** @override */ | 74 /** @override */ |
| 75 useSystemTheme: function() { | 75 useSystemTheme: function() { |
| 76 chrome.send('useSystemTheme'); | 76 chrome.send('useSystemTheme'); |
| 77 }, | 77 }, |
| 78 // </if> | 78 // </if> |
| 79 | |
| 80 /** @override */ | |
| 81 validateStartupPage: function(url) { | |
|
dpapad
2017/03/24 01:39:31
This method needs to be declared on the Appearance
scottchen
2017/03/24 20:48:54
Done.
| |
| 82 return cr.sendWithPromise('validateStartupPage', url); | |
| 83 }, | |
| 79 }; | 84 }; |
| 80 | 85 |
| 81 return { | 86 return { |
| 82 AppearanceBrowserProxy: AppearanceBrowserProxy, | 87 AppearanceBrowserProxy: AppearanceBrowserProxy, |
| 83 AppearanceBrowserProxyImpl: AppearanceBrowserProxyImpl, | 88 AppearanceBrowserProxyImpl: AppearanceBrowserProxyImpl, |
| 84 }; | 89 }; |
| 85 }); | 90 }); |
| OLD | NEW |