Index: chrome/browser/resources/chromeos/login/login_common.js |
diff --git a/chrome/browser/resources/chromeos/login/login_common.js b/chrome/browser/resources/chromeos/login/login_common.js |
index e9cca699535237ab29f3e56573149e2ab5b17299..dc9fa54e91e3f43f874b66e1ecf4a1d0de63dd40 100644 |
--- a/chrome/browser/resources/chromeos/login/login_common.js |
+++ b/chrome/browser/resources/chromeos/login/login_common.js |
@@ -285,10 +285,16 @@ cr.define('cr.ui', function() { |
* @param {string} username Login username. |
* @param {string} password Login password. |
*/ |
- Oobe.loginForTesting = function(username, password) { |
+ Oobe.loginForTesting = function(username, password, gaia_id) { |
Oobe.disableSigninUI(); |
chrome.send('skipToLoginForTesting', [username]); |
- chrome.send('completeLogin', ['12345', username, password, false]); |
+ if (!gaia_id) { |
+ /* TODO (alemate): Remove this backward compatibility hack when |
+ as soon as all telemetry tests will pass gaia_id directly. |
+ */ |
+ gaia_id = '12345'; |
+ } |
+ chrome.send('completeLogin', [gaia_id, username, password, false]); |
}; |
/** |