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

Issue 22887039: Normalize incoming AssetID paths. (Closed)

Created:
7 years, 4 months ago by Bob Nystrom
Modified:
7 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Normalize incoming AssetID paths. BUG=https://code.google.com/p/dart/issues/detail?id=12650 R=nweiz@google.com, sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=26558

Patch Set 1 #

Patch Set 2 : Enable polymer test that should be fixed by this. #

Total comments: 4

Patch Set 3 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -17 lines) Patch
M pkg/barback/lib/src/asset_id.dart View 1 2 3 chunks +21 lines, -4 lines 0 comments Download
M pkg/barback/test/asset_id_test.dart View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M pkg/pkg.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/serve.dart View 3 chunks +4 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bob Nystrom
I've been burned several times by creating an AssetID using a Windows file path and ...
7 years, 4 months ago (2013-08-22 19:41:09 UTC) #1
Siggi Cherem (dart-lang)
FYI - I'm still waiting for a review on my change, so if you land ...
7 years, 4 months ago (2013-08-22 19:50:29 UTC) #2
Siggi Cherem (dart-lang)
On 2013/08/22 19:50:29, Siggi Cherem (dart-lang) wrote: > FYI - I'm still waiting for a ...
7 years, 4 months ago (2013-08-22 19:50:57 UTC) #3
Siggi Cherem (dart-lang)
lgtm
7 years, 4 months ago (2013-08-22 19:57:43 UTC) #4
nweiz
A couple nits, otherwise lgtm. https://codereview.chromium.org/22887039/diff/5001/pkg/barback/lib/src/asset_id.dart File pkg/barback/lib/src/asset_id.dart (right): https://codereview.chromium.org/22887039/diff/5001/pkg/barback/lib/src/asset_id.dart#newcode101 pkg/barback/lib/src/asset_id.dart:101: String _normalizePath(String path) { ...
7 years, 4 months ago (2013-08-22 20:57:14 UTC) #5
Bob Nystrom
Committed patchset #3 manually as r26558 (presubmit successful).
7 years, 4 months ago (2013-08-22 21:36:43 UTC) #6
Bob Nystrom
7 years, 4 months ago (2013-08-22 21:37:19 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/22887039/diff/5001/pkg/barback/lib/src/asset_...
File pkg/barback/lib/src/asset_id.dart (right):

https://codereview.chromium.org/22887039/diff/5001/pkg/barback/lib/src/asset_...
pkg/barback/lib/src/asset_id.dart:101: String _normalizePath(String path) {
On 2013/08/22 20:57:14, nweiz wrote:
> It might be nice to assert that [path] is relative here.

Done.

https://codereview.chromium.org/22887039/diff/5001/pkg/barback/test/asset_id_...
File pkg/barback/test/asset_id_test.dart (right):

https://codereview.chromium.org/22887039/diff/5001/pkg/barback/test/asset_id_...
pkg/barback/test/asset_id_test.dart:15: 
On 2013/08/22 20:57:14, nweiz wrote:
> Style nit: extra newline.

Done.

Powered by Google App Engine
This is Rietveld 408576698