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

Issue 249083004: Int switch (Closed)

Created:
6 years, 8 months ago by Anders Johnsen
Modified:
6 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add comment. #

Patch Set 3 : No need for static anymore. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -53 lines) Patch
M sdk/lib/io/http_headers.dart View 1 2 1 chunk +83 lines, -53 lines 3 comments Download

Messages

Total messages: 7 (0 generated)
Anders Johnsen
6 years, 8 months ago (2014-04-23 11:56:01 UTC) #1
Anders Johnsen
https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart#newcode347 sdk/lib/io/http_headers.dart:347: _addDate(this, name, value); Should we merge return into this ...
6 years, 8 months ago (2014-04-23 11:57:04 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart#newcode343 sdk/lib/io/http_headers.dart:343: assert(name == name.toLowerCase()); Please add a comment on ...
6 years, 8 months ago (2014-04-23 12:06:39 UTC) #3
Anders Johnsen
https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/249083004/diff/1/sdk/lib/io/http_headers.dart#newcode343 sdk/lib/io/http_headers.dart:343: assert(name == name.toLowerCase()); On 2014/04/23 12:06:39, Søren Gjesse wrote: ...
6 years, 8 months ago (2014-04-23 12:20:12 UTC) #4
Anders Johnsen
Committed patchset #3 manually as r35311 (presubmit successful).
6 years, 8 months ago (2014-04-23 12:21:07 UTC) #5
Lasse Reichstein Nielsen
Slow LGTM https://codereview.chromium.org/249083004/diff/40001/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/249083004/diff/40001/sdk/lib/io/http_headers.dart#newcode304 sdk/lib/io/http_headers.dart:304: void _addContentLength(String name, value) { Do you ...
6 years, 8 months ago (2014-04-23 12:31:05 UTC) #6
Anders Johnsen
6 years, 8 months ago (2014-04-23 12:33:00 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/249083004/diff/40001/sdk/lib/io/http_headers....
File sdk/lib/io/http_headers.dart (right):

https://codereview.chromium.org/249083004/diff/40001/sdk/lib/io/http_headers....
sdk/lib/io/http_headers.dart:304: void _addContentLength(String name, value) {
On 2014/04/23 12:31:06, Lasse Reichstein Nielsen wrote:
> Do you need to pass the name?
> It should always be HttpHeaders.CONTENT_LENGTH here (and it isn't even used in
> this function).

Yes, but as we use it a lot (see exception), it's cleaner to pass it.

Powered by Google App Engine
This is Rietveld 408576698