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

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

Issue 2208583006: UMA for pin unlock success/failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 9 errors. Created 4 years, 4 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 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 Common OOBE controller methods. This method is shared between 6 * @fileoverview Common OOBE controller methods. This method is shared between
7 * OOBE, login, and the lock screen. Add only methods that need to be shared 7 * OOBE, login, and the lock screen. Add only methods that need to be shared
8 * between all *three* screens here, as each additional method increases the 8 * between all *three* screens here, as each additional method increases the
9 * time it takes to show the lock screen. 9 * time it takes to show the lock screen.
10 * 10 *
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 chrome.send('launchIncognito'); 328 chrome.send('launchIncognito');
329 }; 329 };
330 330
331 /** 331 /**
332 * Authenticate for telemetry - used for screenlocker. 332 * Authenticate for telemetry - used for screenlocker.
333 * @param {string} username Login username. 333 * @param {string} username Login username.
334 * @param {string} password Login password. 334 * @param {string} password Login password.
335 */ 335 */
336 Oobe.authenticateForTesting = function(username, password) { 336 Oobe.authenticateForTesting = function(username, password) {
337 Oobe.disableSigninUI(); 337 Oobe.disableSigninUI();
338 chrome.send('authenticateUser', [username, password]); 338 chrome.send('authenticateUser', [username, password, false]);
339 }; 339 };
340 340
341 /** 341 /**
342 * Gaia login screen for telemetry. 342 * Gaia login screen for telemetry.
343 */ 343 */
344 Oobe.addUserForTesting = function() { 344 Oobe.addUserForTesting = function() {
345 Oobe.skipToLoginForTesting(); 345 Oobe.skipToLoginForTesting();
346 chrome.send('addUser'); 346 chrome.send('addUser');
347 }; 347 };
348 348
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 422
423 (function() { 423 (function() {
424 'use strict'; 424 'use strict';
425 425
426 document.addEventListener('DOMContentLoaded', function() { 426 document.addEventListener('DOMContentLoaded', function() {
427 Oobe.initialize(); 427 Oobe.initialize();
428 }); 428 });
429 })(); 429 })();
430 430
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698