| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
| 6 * @fileoverview 'settings-language-detail-page' is a sub-page for editing | 6 * @fileoverview 'settings-language-detail-page' is a sub-page for editing |
| 7 * an individual language's settings. | 7 * an individual language's settings. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-language-detail-page', | 10 is: 'settings-language-detail-page', |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Reset the chosen UI language to the actual UI language. | 168 // Reset the chosen UI language to the actual UI language. |
| 169 this.languageHelper_.resetUILanguage(); | 169 this.languageHelper_.resetUILanguage(); |
| 170 } | 170 } |
| 171 }, | 171 }, |
| 172 | 172 |
| 173 /** | 173 /** |
| 174 * Handler for the restart button. | 174 * Handler for the restart button. |
| 175 * @private | 175 * @private |
| 176 */ | 176 */ |
| 177 onRestartTap_: function() { | 177 onRestartTap_: function() { |
| 178 chrome.send('restart'); | 178 <if expr="chromeos"> |
| 179 settings.LifetimeBrowserProxyImpl.getInstance().logOutAndRestart(); |
| 180 </if> |
| 181 <if expr="not chromeos"> |
| 182 settings.LifetimeBrowserProxyImpl.getInstance().restart(); |
| 183 </if> |
| 179 }, | 184 }, |
| 180 }); | 185 }); |
| OLD | NEW |