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

Issue 469943002: Check the Argument to the Catch Function (Closed)

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

Description

Check the Argument to the Catch Function Due to promise chaining, the rejecting promise may not necessarily be the topmost method returning the promise. In this specific case, getAuth() is chained in by requestFromServer, and getAuth can reject with no arguments. The fix here is to ensure the argument is always an object. BUG=402729 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289668

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
robliao
xiyuan: Please provide OWNER approval for this CL. Thanks!
6 years, 4 months ago (2014-08-13 22:57:19 UTC) #1
xiyuan
lgtm
6 years, 4 months ago (2014-08-13 23:00:16 UTC) #2
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 4 months ago (2014-08-13 23:00:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/469943002/1
6 years, 4 months ago (2014-08-13 23:04:33 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 15:53:59 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 19:36:26 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (1) as 289668

Powered by Google App Engine
This is Rietveld 408576698