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

Issue 27030012: Restoring notifications on startup (Closed)

Created:
7 years, 2 months ago by vadimt
Modified:
7 years, 2 months ago
Reviewers:
robliao, rgustafson, skare_
CC:
chromium-reviews, arv+watch_chromium.org, govind1
Visibility:
Public.

Description

Restoring notifications on startup without making a server poll. BUG=164227 TEST=Receive cards. Close Chrome process. Disconnect from network. Start Chrome. Cards should be shown on startup. Alternatively: Receive cards. In less than 5 minutes: Close Chrome process, start it, make sure cards are shown and the devtools log doesn't show a server request. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228856

Patch Set 1 #

Total comments: 10

Patch Set 2 : robliao@ comments #

Total comments: 6

Patch Set 3 : rgustafson's comments #

Patch Set 4 : More rgustafson's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -51 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 9 chunks +36 lines, -20 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 4 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 5 chunks +22 lines, -12 lines 0 comments Download
M chrome/browser/resources/google_now/cards_unittest.gtestjs View 4 chunks +59 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
vadimt
7 years, 2 months ago (2013-10-11 23:40:33 UTC) #1
robliao
https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js#newcode524 chrome/browser/resources/google_now/background.js:524: mergeAndShowNotificationCards(); Seems like overkill to set notificationGroups and then ...
7 years, 2 months ago (2013-10-14 21:05:31 UTC) #2
vadimt
https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js#newcode524 chrome/browser/resources/google_now/background.js:524: mergeAndShowNotificationCards(); On 2013/10/14 21:05:31, Robert Liao wrote: > Seems ...
7 years, 2 months ago (2013-10-14 23:51:57 UTC) #3
robliao
https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js#newcode524 chrome/browser/resources/google_now/background.js:524: mergeAndShowNotificationCards(); This rearrangement only affects new code, namely mergeAndShowNotificationCards. ...
7 years, 2 months ago (2013-10-14 23:56:08 UTC) #4
vadimt
https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/27030012/diff/1/chrome/browser/resources/google_now/background.js#newcode524 chrome/browser/resources/google_now/background.js:524: mergeAndShowNotificationCards(); On 2013/10/14 23:56:08, Robert Liao wrote: > This ...
7 years, 2 months ago (2013-10-15 01:09:43 UTC) #5
robliao
lgtm
7 years, 2 months ago (2013-10-15 01:12:59 UTC) #6
rgustafson
https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js#oldcode478 chrome/browser/resources/google_now/background.js:478: var updatedGroups = {}; For updatedGroups -> items.notificationGroups What ...
7 years, 2 months ago (2013-10-15 21:14:33 UTC) #7
vadimt
https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js#oldcode478 chrome/browser/resources/google_now/background.js:478: var updatedGroups = {}; On 2013/10/15 21:14:33, rgustafson wrote: ...
7 years, 2 months ago (2013-10-15 21:28:02 UTC) #8
rgustafson
https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js#oldcode478 chrome/browser/resources/google_now/background.js:478: var updatedGroups = {}; On 2013/10/15 21:28:03, vadimt wrote: ...
7 years, 2 months ago (2013-10-15 21:43:41 UTC) #9
vadimt
https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/27030012/diff/9001/chrome/browser/resources/google_now/background.js#oldcode478 chrome/browser/resources/google_now/background.js:478: var updatedGroups = {}; On 2013/10/15 21:43:41, rgustafson wrote: ...
7 years, 2 months ago (2013-10-15 22:05:36 UTC) #10
rgustafson
lgtm
7 years, 2 months ago (2013-10-15 23:43:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/27030012/22001
7 years, 2 months ago (2013-10-16 00:11:25 UTC) #12
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 03:45:05 UTC) #13
Message was sent while issue was closed.
Change committed as 228856

Powered by Google App Engine
This is Rietveld 408576698