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

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

Issue 2057893002: Decrease SAML webview with camera timeout to 90 seconds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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
« 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 (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 animation guard timer. Started when GAIA page is loaded 10 // GAIA animation guard timer. Started when GAIA page is loaded
(...skipping 12 matching lines...) Expand all
23 /** @const */ var IDLE_TIME_UNTIL_EXIT_OFFLINE_IN_MILLISECONDS = 180 * 1000; 23 /** @const */ var IDLE_TIME_UNTIL_EXIT_OFFLINE_IN_MILLISECONDS = 180 * 1000;
24 24
25 // Approximate amount of time between checks to see if we should go to the 25 // Approximate amount of time between checks to see if we should go to the
26 // online login page when we're in the offline login page and the device is 26 // online login page when we're in the offline login page and the device is
27 // online. 27 // online.
28 /** @const */ var IDLE_TIME_CHECK_FREQUENCY = 5 * 1000; 28 /** @const */ var IDLE_TIME_CHECK_FREQUENCY = 5 * 1000;
29 29
30 // Amount of time allowed for video based SAML logins, to prevent a site 30 // Amount of time allowed for video based SAML logins, to prevent a site
31 // from keeping the camera on indefinitely. This is a hard deadline and 31 // from keeping the camera on indefinitely. This is a hard deadline and
32 // it will not be extended by user activity. 32 // it will not be extended by user activity.
33 /** @const */ var VIDEO_LOGIN_TIMEOUT = 180 * 1000; 33 /** @const */ var VIDEO_LOGIN_TIMEOUT = 90 * 1000;
34 34
35 /** 35 /**
36 * The modes this screen can be in. 36 * The modes this screen can be in.
37 * @enum {integer} 37 * @enum {integer}
38 */ 38 */
39 var ScreenMode = { 39 var ScreenMode = {
40 DEFAULT: 0, // Default GAIA login flow. 40 DEFAULT: 0, // Default GAIA login flow.
41 OFFLINE: 1, // GAIA offline login. 41 OFFLINE: 1, // GAIA offline login.
42 SAML_INTERSTITIAL: 2 // Interstitial page before SAML redirection. 42 SAML_INTERSTITIAL: 2 // Interstitial page before SAML redirection.
43 }; 43 };
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 this.classList.toggle('whitelist-error', show); 1040 this.classList.toggle('whitelist-error', show);
1041 this.loading = !show; 1041 this.loading = !show;
1042 1042
1043 if (!show) 1043 if (!show)
1044 Oobe.showSigninUI(); 1044 Oobe.showSigninUI();
1045 1045
1046 this.updateControlsState(); 1046 this.updateControlsState();
1047 } 1047 }
1048 }; 1048 };
1049 }); 1049 });
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