Index: chrome/browser/resources/google_now/background.js |
diff --git a/chrome/browser/resources/google_now/background.js b/chrome/browser/resources/google_now/background.js |
index f1a44a1efc83497e7a96d8e92ac60d2efe06d86e..304c7e46355613ed509be86a8c086592ce050116 100644 |
--- a/chrome/browser/resources/google_now/background.js |
+++ b/chrome/browser/resources/google_now/background.js |
@@ -235,7 +235,7 @@ function recordEvent(event) { |
* parameter. |
*/ |
function setAuthorization(request, callbackBoolean) { |
- authenticationManager.isSignedIn(function(token) { |
+ authenticationManager.getAuthToken(function(token) { |
if (!token) { |
callbackBoolean(false); |
return; |
@@ -981,8 +981,7 @@ function updateRunningState( |
*/ |
function onStateChange() { |
tasks.add(STATE_CHANGED_TASK_NAME, function() { |
- authenticationManager.isSignedIn(function(token) { |
- var signedIn = !!token; |
+ authenticationManager.isSignedIn(function(signedIn) { |
instrumented.metricsPrivate.getVariationParams( |
'GoogleNow', |
function(response) { |