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

Issue 22912021: Handling errors from chrome APIs (Closed)

Created:
7 years, 4 months ago by vadimt
Modified:
7 years, 4 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Handling errors from chrome APIs. Some Chrome API calls can fail and return 'undefined' result. Making our code not send crashes and behave reasonably in such cases. Also, sending crashes if server sends malformed cards. + some smaller cleanups. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219157

Patch Set 1 #

Total comments: 24

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -93 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 7 chunks +13 lines, -17 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 2 chunks +33 lines, -40 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vadimt
7 years, 4 months ago (2013-08-21 22:35:05 UTC) #1
skare_
lgtm https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode588 chrome/browser/resources/google_now/background.js:588: var notificationData = items.notificationsData[notificationId]; no action required but ...
7 years, 4 months ago (2013-08-21 23:12:31 UTC) #2
robliao
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode260 chrome/browser/resources/google_now/background.js:260: items.notificationsData = items.notificationsData || {}; Is a check here ...
7 years, 4 months ago (2013-08-22 00:01:55 UTC) #3
rgustafson
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode588 chrome/browser/resources/google_now/background.js:588: var notificationData = items.notificationsData[notificationId]; On 2013/08/21 23:12:32, Travis Skare ...
7 years, 4 months ago (2013-08-22 00:46:14 UTC) #4
rgustafson
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/utility.js#newcode508 chrome/browser/resources/google_now/utility.js:508: items = {}; On 2013/08/22 00:46:14, rgustafson wrote: > ...
7 years, 4 months ago (2013-08-22 00:49:53 UTC) #5
vadimt
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode260 chrome/browser/resources/google_now/background.js:260: items.notificationsData = items.notificationsData || {}; On 2013/08/22 00:01:56, Robert ...
7 years, 4 months ago (2013-08-22 01:24:27 UTC) #6
robliao
lgtm https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode883 chrome/browser/resources/google_now/background.js:883: var geolocationEnabled = !!prefValue.value; As written, it cannot ...
7 years, 4 months ago (2013-08-22 18:01:13 UTC) #7
rgustafson
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode890 chrome/browser/resources/google_now/background.js:890: !items || !!items.userRespondedToToast; On 2013/08/22 01:24:28, vadimt wrote: > ...
7 years, 4 months ago (2013-08-22 19:07:32 UTC) #8
vadimt
https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22912021/diff/1/chrome/browser/resources/google_now/background.js#newcode890 chrome/browser/resources/google_now/background.js:890: !items || !!items.userRespondedToToast; On 2013/08/22 19:07:32, rgustafson wrote: > ...
7 years, 4 months ago (2013-08-22 19:34:55 UTC) #9
rgustafson
lgtm
7 years, 4 months ago (2013-08-22 20:17:46 UTC) #10
vadimt
arv@, please provide OWNER's approval
7 years, 4 months ago (2013-08-22 20:21:02 UTC) #11
arv (Not doing code reviews)
LGTM
7 years, 4 months ago (2013-08-22 20:34:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/22912021/10001
7 years, 4 months ago (2013-08-22 20:57:03 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 00:10:41 UTC) #14
Message was sent while issue was closed.
Change committed as 219157

Powered by Google App Engine
This is Rietveld 408576698