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

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

Issue 957673003: Chrome OS Gaia: Set param 'chrometype' for MinuteMaid (chromebox, chromebase or chromebook) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
10 // Gaia loading time after which error message must be displayed and 10 // Gaia loading time after which error message must be displayed and
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 if (data.localizedStrings) 311 if (data.localizedStrings)
312 params.localizedStrings = data.localizedStrings; 312 params.localizedStrings = data.localizedStrings;
313 313
314 if (data.useMinuteMaid) { 314 if (data.useMinuteMaid) {
315 this.isMinuteMaid = true; 315 this.isMinuteMaid = true;
316 $('inner-container').classList.add('minute-maid'); 316 $('inner-container').classList.add('minute-maid');
317 $('progress-dots').hidden = true; 317 $('progress-dots').hidden = true;
318 if (data.enterpriseDomain) 318 if (data.enterpriseDomain)
319 params.enterpriseDomain = data.enterpriseDomain; 319 params.enterpriseDomain = data.enterpriseDomain;
320 params.chromeType = data.chromeType;
320 data.useEmbedded = false; 321 data.useEmbedded = false;
321 params.isMinuteMaidChromeOS = true; 322 params.isMinuteMaidChromeOS = true;
322 $('login-header-bar').showGuestButton = true; 323 $('login-header-bar').showGuestButton = true;
323 } 324 }
324 325
325 if (data.gaiaEndpoint) 326 if (data.gaiaEndpoint)
326 params.gaiaPath = data.gaiaEndpoint; 327 params.gaiaPath = data.gaiaEndpoint;
327 328
328 $('login-header-bar').minuteMaid = this.isMinuteMaid; 329 $('login-header-bar').minuteMaid = this.isMinuteMaid;
329 330
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 * For more info see C++ class 'WebUILoginView' which calls this method. 718 * For more info see C++ class 'WebUILoginView' which calls this method.
718 * @param {number} error Error code. 719 * @param {number} error Error code.
719 * @param {string} url The URL that failed to load. 720 * @param {string} url The URL that failed to load.
720 */ 721 */
721 onFrameError: function(error, url) { 722 onFrameError: function(error, url) {
722 this.error_ = error; 723 this.error_ = error;
723 chrome.send('frameLoadingCompleted', [this.error_]); 724 chrome.send('frameLoadingCompleted', [this.error_]);
724 }, 725 },
725 }; 726 };
726 }); 727 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chromeos_utils.cc ('k') | chrome/browser/resources/gaia_auth_host/authenticator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698