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

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

Issue 2617823002: GRIT: put <if> and <include> behind comments in .js files to make syntactically valid JS (Closed)
Patch Set: add dep Created 3 years, 11 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 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() { 5 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
6 /* Code which is embedded inside of the webview. See below for details. 6 /* Code which is embedded inside of the webview. See below for details.
7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw` 7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw`
8 (function() { 8 (function() {
9 <include src="../keyboard/keyboard_utils.js"> 9 // <include src="../keyboard/keyboard_utils.js">
10 keyboard.initializeKeyboardFlow(true); 10 keyboard.initializeKeyboardFlow(true);
11 })();`; 11 })();`;
12 12
13 /** @const */ var STEP_SIGNIN = 'signin'; 13 /** @const */ var STEP_SIGNIN = 'signin';
14 /** @const */ var STEP_AD_JOIN = 'ad-join'; 14 /** @const */ var STEP_AD_JOIN = 'ad-join';
15 /** @const */ var STEP_WORKING = 'working'; 15 /** @const */ var STEP_WORKING = 'working';
16 /** @const */ var STEP_ATTRIBUTE_PROMPT = 'attribute-prompt'; 16 /** @const */ var STEP_ATTRIBUTE_PROMPT = 'attribute-prompt';
17 /** @const */ var STEP_ERROR = 'error'; 17 /** @const */ var STEP_ERROR = 'error';
18 /** @const */ var STEP_SUCCESS = 'success'; 18 /** @const */ var STEP_SUCCESS = 'success';
19 /** @const */ var STEP_ABE_SUCCESS = 'abe-success'; 19 /** @const */ var STEP_ABE_SUCCESS = 'abe-success';
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 this.navigation_.refreshVisible = this.isAtTheBeginning() && 407 this.navigation_.refreshVisible = this.isAtTheBeginning() &&
408 !this.isManualEnrollment_; 408 !this.isManualEnrollment_;
409 this.navigation_.closeVisible = (this.currentStep_ == STEP_SIGNIN || 409 this.navigation_.closeVisible = (this.currentStep_ == STEP_SIGNIN ||
410 this.currentStep_ == STEP_ERROR || 410 this.currentStep_ == STEP_ERROR ||
411 this.currentStep_ == STEP_AD_JOIN) && 411 this.currentStep_ == STEP_AD_JOIN) &&
412 !this.navigation_.refreshVisible; 412 !this.navigation_.refreshVisible;
413 $('login-header-bar').updateUI_(); 413 $('login-header-bar').updateUI_();
414 } 414 }
415 }; 415 };
416 }); 416 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698