Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/browser/resources/settings/languages_page/language_detail_page.js

Issue 2353513005: MD Settings: Fix restart buttons for Chrome OS (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/lifetime_browser_proxy.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 this.languageHelper.resetUILanguage(); 164 this.languageHelper.resetUILanguage();
165 } 165 }
166 }, 166 },
167 167
168 /** 168 /**
169 * Handler for the restart button. 169 * Handler for the restart button.
170 * @private 170 * @private
171 */ 171 */
172 onRestartTap_: function() { 172 onRestartTap_: function() {
173 <if expr="chromeos"> 173 <if expr="chromeos">
174 settings.LifetimeBrowserProxyImpl.getInstance().logOutAndRestart(); 174 settings.LifetimeBrowserProxyImpl.getInstance().signOutAndRestart();
175 </if> 175 </if>
176 <if expr="not chromeos"> 176 <if expr="not chromeos">
177 settings.LifetimeBrowserProxyImpl.getInstance().restart(); 177 settings.LifetimeBrowserProxyImpl.getInstance().restart();
178 </if> 178 </if>
179 }, 179 },
180 }); 180 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/lifetime_browser_proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698