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

Unified Diff: chrome/browser/resources/google_now/background.js

Issue 51333004: Using a private API to determine if there is an account for the profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/google_now/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | chrome/browser/resources/google_now/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698