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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_arc_terms_of_service.js

Issue 2555743007: [Merge-M56] arc: Make sure PlayStore logo image loaded for Arc OptIn OOBE page. (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** 5 /**
6 * @fileoverview Oobe Arc Terms of Service screen implementation. 6 * @fileoverview Oobe Arc Terms of Service screen implementation.
7 */ 7 */
8 8
9 login.createScreen('ArcTermsOfServiceScreen', 'arc-tos', 9 login.createScreen('ArcTermsOfServiceScreen', 'arc-tos',
10 function() { return { 10 function() { return {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 this.classList.add('error'); 278 this.classList.add('error');
279 }, 279 },
280 280
281 /** 281 /**
282 * Event handler that is invoked just before the screen is shown. 282 * Event handler that is invoked just before the screen is shown.
283 * @param {object} data Screen init payload. 283 * @param {object} data Screen init payload.
284 */ 284 */
285 onBeforeShow: function(data) { 285 onBeforeShow: function(data) {
286 Oobe.getInstance().headerHidden = true; 286 Oobe.getInstance().headerHidden = true;
287 287
288 // Reload caption image in case it was not loaded during the
289 // initialization phase.
290 $('arc-tos-logo').src =
291 'https://play.google.com/about/images/play_logo.png';
292
288 this.hideOverlay(); 293 this.hideOverlay();
289 this.reloadPlayStore(); 294 this.reloadPlayStore();
290 }, 295 },
291 296
292 /** 297 /**
293 * Updates localized content of the screen that is not updated via template. 298 * Updates localized content of the screen that is not updated via template.
294 */ 299 */
295 updateLocalizedContent: function() { 300 updateLocalizedContent: function() {
296 var self = this; 301 var self = this;
297 302
298 var leanMoreBackupAndRestoreText = 303 var leanMoreBackupAndRestoreText =
299 loadTimeData.getString('arcLearnMoreBackupAndRestore'); 304 loadTimeData.getString('arcLearnMoreBackupAndRestore');
300 $('learn-more-link-backup-restore').onclick = function() { 305 $('learn-more-link-backup-restore').onclick = function() {
301 self.showLearnMoreOverlay(leanMoreBackupAndRestoreText); 306 self.showLearnMoreOverlay(leanMoreBackupAndRestoreText);
302 }; 307 };
303 308
304 var leanMoreLocationServiceText = 309 var leanMoreLocationServiceText =
305 loadTimeData.getString('arcLearnMoreLocationService'); 310 loadTimeData.getString('arcLearnMoreLocationService');
306 $('learn-more-link-location-service').onclick = function() { 311 $('learn-more-link-location-service').onclick = function() {
307 self.showLearnMoreOverlay(leanMoreLocationServiceText); 312 self.showLearnMoreOverlay(leanMoreLocationServiceText);
308 }; 313 };
309 } 314 }
310 }; 315 };
311 }); 316 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698