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

Issue 1856773002: Provide an explicit 2nd parameter to historyView.showNotification() (Closed)

Created:
4 years, 8 months ago by msramek
Modified:
4 years, 8 months ago
Reviewers:
Dan Beam, Jackie Quinn, sky
CC:
chromium-reviews, Patrick Dubroy, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide an explicit 2nd parameter to historyView.showNotification() HistoryView.prototype.showNotification() requires two parameters, but the callsite in HistoryView.prototype.showWebHistoryNotification, added in https://codereview.chromium.org/1838333004/, only passes one. This is functionally equivalent, since the second parameter should be "false". However, this shows as an error on the Closure compiler. TBR=dbeam@chromium.org,jyquinn@chromium.org,sky@chromium.org BUG=595332 Committed: https://crrev.com/7b1d959bc4e1cae64abdeff2c5baeb9c38c3813b Cr-Commit-Position: refs/heads/master@{#384918}

Patch Set 1 #

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

Messages

Total messages: 7 (2 generated)
msramek
Hi folks, https://codereview.chromium.org/1838333004/ which I just landed caused an error on one of the FYI ...
4 years, 8 months ago (2016-04-04 15:06:41 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1856773002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1856773002/1
4 years, 8 months ago (2016-04-04 15:07:08 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-04 15:55:18 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/7b1d959bc4e1cae64abdeff2c5baeb9c38c3813b Cr-Commit-Position: refs/heads/master@{#384918}
4 years, 8 months ago (2016-04-04 15:56:23 UTC) #6
Dan Beam
4 years, 8 months ago (2016-04-04 18:47:18 UTC) #7
Message was sent while issue was closed.
lgtm

fyi: i think this was the right call but there's also the ability to annotate
something as an optional parameter, as in:

  /** @param {boolean=} opt_isWarning */

where the = in the type means |undefined (and doesn't warn when omitted from
callsites) and the opt_ prefix tells the reader it's optional.

Powered by Google App Engine
This is Rietveld 408576698