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

Issue 21235008: Authentication Manager for Google Now (Closed)

Created:
7 years, 4 months ago by robliao
Modified:
7 years, 4 months ago
Reviewers:
xiyuan, vadimt
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@GeoSM-Diag
Visibility:
Public.

Description

Authentication Manager for Google Now There is currently no way to observe the sign-in state of the user in Chrome. To work around this, the new authentication manager will poll for the sign in state and notify any listeners about a change in the sign in state. Calls for sign in state should correspondingly go through the authentication manager since a check may already be in flight during a call to getAuthToken. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215115

Patch Set 1 #

Total comments: 22

Patch Set 2 : CR Feedback #

Patch Set 3 : CR Feedback #

Total comments: 4

Patch Set 4 : Synced #

Patch Set 5 : CR Feedback #

Total comments: 2

Patch Set 6 : Use undefined #

Total comments: 4

Patch Set 7 : Fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -27 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 6 chunks +15 lines, -20 lines 0 comments Download
M chrome/browser/resources/google_now/background_test_util.js View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
robliao
7 years, 4 months ago (2013-07-30 22:13:50 UTC) #1
vadimt
https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/background.js#newcode196 chrome/browser/resources/google_now/background.js:196: function setAuthorization(request, callbackBoolean) { Why not move the whole ...
7 years, 4 months ago (2013-07-30 23:27:23 UTC) #2
robliao
https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/background.js#newcode196 chrome/browser/resources/google_now/background.js:196: function setAuthorization(request, callbackBoolean) { I wanted to keep the ...
7 years, 4 months ago (2013-07-30 23:58:03 UTC) #3
vadimt
https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/utility.js#newcode434 chrome/browser/resources/google_now/utility.js:434: * @param {function(boolean, string)} onSuccess Called on completion. On ...
7 years, 4 months ago (2013-07-31 02:29:49 UTC) #4
robliao
https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/1/chrome/browser/resources/google_now/utility.js#newcode434 chrome/browser/resources/google_now/utility.js:434: * @param {function(boolean, string)} onSuccess Called on completion. sgtm ...
7 years, 4 months ago (2013-07-31 14:46:24 UTC) #5
vadimt
https://codereview.chromium.org/21235008/diff/22001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/22001/chrome/browser/resources/google_now/utility.js#newcode430 chrome/browser/resources/google_now/utility.js:430: * @param {function(string)} callback Called on completion. function(string=) https://codereview.chromium.org/21235008/diff/22001/chrome/browser/resources/google_now/utility.js#newcode435 ...
7 years, 4 months ago (2013-07-31 19:49:54 UTC) #6
robliao
https://codereview.chromium.org/21235008/diff/22001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/22001/chrome/browser/resources/google_now/utility.js#newcode430 chrome/browser/resources/google_now/utility.js:430: * @param {function(string)} callback Called on completion. On 2013/07/31 ...
7 years, 4 months ago (2013-07-31 20:38:13 UTC) #7
vadimt
lgtm https://codereview.chromium.org/21235008/diff/31001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/31001/chrome/browser/resources/google_now/utility.js#newcode435 chrome/browser/resources/google_now/utility.js:435: token = chrome.runtime.lastError ? null : token; I ...
7 years, 4 months ago (2013-07-31 20:46:17 UTC) #8
robliao
xiyuan: Please provide owner approval for the files in this CL. Thanks!
7 years, 4 months ago (2013-07-31 20:47:35 UTC) #9
robliao
https://codereview.chromium.org/21235008/diff/31001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/31001/chrome/browser/resources/google_now/utility.js#newcode435 chrome/browser/resources/google_now/utility.js:435: token = chrome.runtime.lastError ? null : token; I'm convinced. ...
7 years, 4 months ago (2013-07-31 20:49:15 UTC) #10
robliao
7 years, 4 months ago (2013-07-31 20:49:16 UTC) #11
xiyuan
https://codereview.chromium.org/21235008/diff/38001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/38001/chrome/browser/resources/google_now/utility.js#newcode470 chrome/browser/resources/google_now/utility.js:470: var lastReturnedSignedInState; Should we initialize lastReturnedSignedInState to null here? ...
7 years, 4 months ago (2013-07-31 21:17:02 UTC) #12
robliao
https://codereview.chromium.org/21235008/diff/38001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/21235008/diff/38001/chrome/browser/resources/google_now/utility.js#newcode470 chrome/browser/resources/google_now/utility.js:470: var lastReturnedSignedInState; Hrm... a lost delta. This is supposed ...
7 years, 4 months ago (2013-07-31 21:31:45 UTC) #13
xiyuan
lgtm
7 years, 4 months ago (2013-07-31 21:44:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/21235008/43001
7 years, 4 months ago (2013-08-01 17:04:16 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 21:42:02 UTC) #16
Message was sent while issue was closed.
Change committed as 215115

Powered by Google App Engine
This is Rietveld 408576698