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

Issue 166033010: Convert Google Now's use of chrome.local.storage.get to use Promises (Closed)

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

Description

Convert Google Now's use of chrome.storage.local.get to use Promises BUG=164227 R=rgustafson@chromium.org, skare@chromium.org, vadimt@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254542

Patch Set 1 #

Total comments: 12

Patch Set 2 : CR Feedback #

Patch Set 3 : Rebase to r252941 #

Total comments: 2

Patch Set 4 : Rebasing to r253863 #

Total comments: 8

Patch Set 5 : CR Feedback and Bugfix #

Total comments: 2

Patch Set 6 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -395 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 4 9 chunks +193 lines, -207 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 2 3 13 chunks +46 lines, -61 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 1 chunk +27 lines, -29 lines 0 comments Download
M chrome/browser/resources/google_now/cards_unittest.gtestjs View 3 chunks +45 lines, -49 lines 0 comments Download
M chrome/browser/resources/google_now/common_test_util.js View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 1 2 3 4 5 7 chunks +63 lines, -21 lines 0 comments Download
M chrome/browser/resources/google_now/utility_test_util.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/google_now/utility_unittest.gtestjs View 1 2 3 4 9 chunks +32 lines, -28 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
robliao
6 years, 10 months ago (2014-02-15 00:01:53 UTC) #1
skare_
https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/background.js#newcode1085 chrome/browser/resources/google_now/background.js:1085: console.log(results); temporary? https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/utility.js#newcode465 chrome/browser/resources/google_now/utility.js:465: /* ...
6 years, 10 months ago (2014-02-20 00:17:12 UTC) #2
robliao
https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/166033010/diff/1/chrome/browser/resources/google_now/background.js#newcode1085 chrome/browser/resources/google_now/background.js:1085: console.log(results); Yup! Done. On 2014/02/20 00:17:12, Travis Skare wrote: ...
6 years, 10 months ago (2014-02-21 21:25:45 UTC) #3
robliao
Rebase to r252941
6 years, 10 months ago (2014-02-24 18:31:42 UTC) #4
skare_
lgtm
6 years, 9 months ago (2014-02-27 18:46:13 UTC) #5
robliao
vadimt: Please provide owner approval of this CL.
6 years, 9 months ago (2014-02-27 18:46:53 UTC) #6
vadimt
On 2014/02/27 18:46:53, robliao wrote: > vadimt: Please provide owner approval of this CL. Will ...
6 years, 9 months ago (2014-02-27 19:07:24 UTC) #7
robliao
On 2014/02/27 19:07:24, vadimt wrote: > On 2014/02/27 18:46:53, robliao wrote: > > vadimt: Please ...
6 years, 9 months ago (2014-02-27 19:08:09 UTC) #8
robliao
Adding NOPRESUBMIT due to http://crbug.com/338301 ** Presubmit Warnings ** Found JavaScript style violations in chrome\browser\resources\google_now\background.js: ...
6 years, 9 months ago (2014-02-27 19:50:07 UTC) #9
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 9 months ago (2014-02-27 19:50:11 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 19:50:49 UTC) #11
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 9 months ago (2014-02-27 19:50:50 UTC) #12
vadimt
https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js#newcode652 chrome/browser/resources/google_now/utility.js:652: } else if (opt_allowPromiseRejection === PromiseRejection.ALLOW) { Why not ...
6 years, 9 months ago (2014-02-27 20:20:36 UTC) #13
rgustafson
https://codereview.chromium.org/166033010/diff/250001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/166033010/diff/250001/chrome/browser/resources/google_now/background.js#newcode878 chrome/browser/resources/google_now/background.js:878: /** @type {NotificationDataEntry} */ Object.<ChromeNotificationId or string,NotificationDataEntry>? There seems ...
6 years, 9 months ago (2014-02-27 21:32:08 UTC) #14
robliao
Updates and it turns out NOPRESUBMIT doesn't work... https://codereview.chromium.org/166033010/diff/250001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/166033010/diff/250001/chrome/browser/resources/google_now/background.js#newcode878 chrome/browser/resources/google_now/background.js:878: /** ...
6 years, 9 months ago (2014-02-27 23:52:36 UTC) #15
vadimt
https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js#newcode652 chrome/browser/resources/google_now/utility.js:652: } else if (opt_allowPromiseRejection === PromiseRejection.ALLOW) { On 2014/02/27 ...
6 years, 9 months ago (2014-02-28 20:21:04 UTC) #16
robliao
https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/166033010/diff/380001/chrome/browser/resources/google_now/utility.js#newcode652 chrome/browser/resources/google_now/utility.js:652: } else if (opt_allowPromiseRejection === PromiseRejection.ALLOW) { We can ...
6 years, 9 months ago (2014-02-28 20:39:48 UTC) #17
vadimt
lgtm
6 years, 9 months ago (2014-02-28 21:39:08 UTC) #18
rgustafson
lgtm
6 years, 9 months ago (2014-02-28 22:15:57 UTC) #19
robliao
6 years, 9 months ago (2014-03-03 19:59:11 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 manually as r254542 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698