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

Unified Diff: chrome/browser/resources/chromeos/login/demo_user_login.js

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/demo_user_login.js
diff --git a/chrome/browser/resources/chromeos/login/demo_user_login.js b/chrome/browser/resources/chromeos/login/demo_user_login.js
deleted file mode 100644
index a6c3ea276cd63494a12a3e44406ba8772df03440..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/login/demo_user_login.js
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview Demo login UI.
- */
-
-/**
- * Handles a user clicking anywhere on the screen. This will log the demo user
- * in. Yes, this actually _is the intention.
- * @param {Event} e The click event that triggered this function.
- */
-onClick = function(e) {
- document.removeEventListener('click', onClick);
- e.stopPropagation();
- showLoginSpinner();
- chrome.send('launchDemoUser');
-};
-
-/**
- * Initializes the click handler.
- */
-initialize = function() {
- $('page').style.opacity = 1;
- document.addEventListener('click', onClick);
- // Report back sign in UI being painted.
- window.requestAnimationFrame(function() {
- chrome.send('loginVisible', ['demo']);
- });
-};
-
-/**
- * Show the login spinner.
- */
-showLoginSpinner = function() {
- // We're already logging in - don't login on click.
- document.removeEventListener('click', onClick);
-
- // Hide the "Click to start" and show the spinner.
- $('demo-login-text').hidden = true;
- $('login-spinner').hidden = false;
-};
-
-disableTextSelectAndDrag();
-document.addEventListener('DOMContentLoaded', initialize);
« no previous file with comments | « chrome/browser/resources/chromeos/login/demo_user_login.css ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698