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

Issue 107033002: Combining cards instead of merging (Closed)

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

Description

Combining cards instead of merging. When there are several cards with same Chrome ID, we now not simply choose the one with the highest priority and call it a day. Instead, for every moment of time, we show the card with the highest priority, chosen from ones that should be visible at this moment. Also, added Closure annotations to enable static type analysis. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239389

Patch Set 1 #

Patch Set 2 : Remove broken unit tests #

Total comments: 23

Patch Set 3 : robliao@ comments #

Patch Set 4 : More robliao@ comments #

Total comments: 12

Patch Set 5 : skare@ pre-caffeine comments #

Patch Set 6 : (forgot to save a file) #

Total comments: 2

Patch Set 7 : rgustafson's comments #

Total comments: 12

Patch Set 8 : More rgustafson's notes #

Total comments: 2

Patch Set 9 : More robliao@ comments #

Patch Set 10 : rgistafson's verbal comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -1290 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 4 5 6 7 8 23 chunks +241 lines, -257 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 1 chunk +0 lines, -400 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 1 2 3 4 5 6 7 8 9 2 chunks +262 lines, -168 lines 0 comments Download
M chrome/browser/resources/google_now/cards_unittest.gtestjs View 1 2 chunks +0 lines, -462 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
vadimt
7 years ago (2013-12-05 19:24:58 UTC) #1
robliao
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/cards_unittest.gtestjs File chrome/browser/resources/google_now/cards_unittest.gtestjs (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/cards_unittest.gtestjs#newcode78 chrome/browser/resources/google_now/cards_unittest.gtestjs:78: Don't we need new tests for the different functionality?
7 years ago (2013-12-05 22:28:29 UTC) #2
robliao
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode140 chrome/browser/resources/google_now/background.js:140: var StorageGroup; Should this be NotificationGroup? https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode296 chrome/browser/resources/google_now/background.js:296: * ...
7 years ago (2013-12-05 23:27:45 UTC) #3
vadimt
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode140 chrome/browser/resources/google_now/background.js:140: var StorageGroup; On 2013/12/05 23:27:46, robliao wrote: > Should ...
7 years ago (2013-12-06 02:32:37 UTC) #4
robliao
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode140 chrome/browser/resources/google_now/background.js:140: var StorageGroup; StoredNotificationGroup would be better then. On 2013/12/06 ...
7 years ago (2013-12-06 02:38:37 UTC) #5
vadimt
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode140 chrome/browser/resources/google_now/background.js:140: var StorageGroup; On 2013/12/06 02:38:38, robliao wrote: > StoredNotificationGroup ...
7 years ago (2013-12-06 02:49:04 UTC) #6
skare_
hi Vadim -- need to take another look at this later with more coffee, sorry ...
7 years ago (2013-12-06 03:44:00 UTC) #7
vadimt
https://codereview.chromium.org/107033002/diff/50001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/50001/chrome/browser/resources/google_now/background.js#newcode105 chrome/browser/resources/google_now/background.js:105: * Group as it's received from the server. On ...
7 years ago (2013-12-06 18:58:49 UTC) #8
rgustafson
preliminary nit comments. I promise I've looked at it in more depth than just this. ...
7 years ago (2013-12-06 20:01:16 UTC) #9
vadimt
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode143 chrome/browser/resources/google_now/background.js:143: * Pending (not yet successfully sent) dismissal for an ...
7 years ago (2013-12-06 20:57:14 UTC) #10
rgustafson
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode442 chrome/browser/resources/google_now/background.js:442: function parseAndShowNotificationCards(response, onCardShown) { On 2013/12/06 02:32:38, vadimt wrote: ...
7 years ago (2013-12-06 23:35:15 UTC) #11
vadimt
https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/107033002/diff/20001/chrome/browser/resources/google_now/background.js#newcode442 chrome/browser/resources/google_now/background.js:442: function parseAndShowNotificationCards(response, onCardShown) { On 2013/12/06 23:35:16, rgustafson wrote: ...
7 years ago (2013-12-06 23:52:58 UTC) #12
robliao
Provisional LGTM: * Needs Unit Tests * Refactor the *AndShowNotification pattern. https://codereview.chromium.org/107033002/diff/50001/chrome/browser/resources/google_now/cards.js File chrome/browser/resources/google_now/cards.js (right): ...
7 years ago (2013-12-07 00:51:28 UTC) #13
vadimt
https://codereview.chromium.org/107033002/diff/50001/chrome/browser/resources/google_now/cards.js File chrome/browser/resources/google_now/cards.js (right): https://codereview.chromium.org/107033002/diff/50001/chrome/browser/resources/google_now/cards.js#newcode240 chrome/browser/resources/google_now/cards.js:240: // be stored correctly to chrome.storage. I'll let them ...
7 years ago (2013-12-07 01:04:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/107033002/170001
7 years ago (2013-12-07 02:59:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/107033002/170001
7 years ago (2013-12-07 21:58:09 UTC) #17
commit-bot: I haz the power
7 years ago (2013-12-08 07:19:57 UTC) #18
Message was sent while issue was closed.
Change committed as 239389

Powered by Google App Engine
This is Rietveld 408576698