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

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

Issue 2052793004: MD Settings: Hook up languages_page to new LifetimeBrowserProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime_handler
Patch Set: Fix closure compilation. Created 4 years, 6 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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698