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

Issue 23686021: Add property base to the Uri class (Closed)

Created:
7 years, 3 months ago by Søren Gjesse
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Anders Johnsen
Visibility:
Public.

Description

Add property base to the Uri class Uri.base returns the natural base URI for the current platform. R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=27877

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 14

Patch Set 3 : Addressed review comments from floitsch@ #

Patch Set 4 : Addressed review comments from ahe@ #

Total comments: 4

Patch Set 5 : Added embedder hook and some JS shell support #

Patch Set 6 : Minor fixes #

Total comments: 4

Patch Set 7 : Addressed more review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -30 lines) Patch
M runtime/bin/builtin.dart View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
M runtime/lib/uri.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/uri_patch.dart View 1 2 3 4 5 1 chunk +14 lines, -2 lines 0 comments Download
M sdk/lib/_internal/lib/core_patch.dart View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M sdk/lib/_internal/lib/isolate_helper.dart View 1 2 3 4 2 chunks +2 lines, -13 lines 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M sdk/lib/core/uri.dart View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A + tests/corelib/uri_base_test.dart View 1 2 3 4 5 1 chunk +7 lines, -7 lines 0 comments Download
A + tests/html/uri_test.dart View 2 chunks +4 lines, -5 lines 0 comments Download
M tests/html/window_test.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/standalone/io/uri_platform_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Søren Gjesse
Ivan, I am including bin/directory.h and bin/utils.h in lib/uri.cc (using Directory and OSError) - which ...
7 years, 3 months ago (2013-09-17 11:18:12 UTC) #1
floitsch
LGTM. Please wait for the OK from dart2js and VM. https://codereview.chromium.org/23686021/diff/3001/runtime/vm/bootstrap_natives.h File runtime/vm/bootstrap_natives.h (right): https://codereview.chromium.org/23686021/diff/3001/runtime/vm/bootstrap_natives.h#newcode306 ...
7 years, 3 months ago (2013-09-17 11:49:10 UTC) #2
Søren Gjesse
https://codereview.chromium.org/23686021/diff/3001/runtime/vm/bootstrap_natives.h File runtime/vm/bootstrap_natives.h (right): https://codereview.chromium.org/23686021/diff/3001/runtime/vm/bootstrap_natives.h#newcode306 runtime/vm/bootstrap_natives.h:306: V(Uri_currentDirectory, 0) \ On 2013/09/17 11:49:11, floitsch wrote: > ...
7 years, 3 months ago (2013-09-17 11:59:53 UTC) #3
ahe
https://codereview.chromium.org/23686021/diff/3001/sdk/lib/_internal/lib/core_patch.dart File sdk/lib/_internal/lib/core_patch.dart (right): https://codereview.chromium.org/23686021/diff/3001/sdk/lib/_internal/lib/core_patch.dart#newcode7 sdk/lib/_internal/lib/core_patch.dart:7: import 'dart:_foreign_helper' show JS; On 2013/09/17 11:59:53, Søren Gjesse ...
7 years, 3 months ago (2013-09-17 12:23:48 UTC) #4
Søren Gjesse
https://codereview.chromium.org/23686021/diff/3001/sdk/lib/_internal/lib/core_patch.dart File sdk/lib/_internal/lib/core_patch.dart (right): https://codereview.chromium.org/23686021/diff/3001/sdk/lib/_internal/lib/core_patch.dart#newcode7 sdk/lib/_internal/lib/core_patch.dart:7: import 'dart:_foreign_helper' show JS; On 2013/09/17 12:23:48, ahe wrote: ...
7 years, 3 months ago (2013-09-17 14:12:10 UTC) #5
ahe
LGTM! https://codereview.chromium.org/23686021/diff/3001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/23686021/diff/3001/sdk/lib/core/uri.dart#newcode364 sdk/lib/core/uri.dart:364: * When running in the browser this will ...
7 years, 3 months ago (2013-09-17 14:17:39 UTC) #6
Søren Gjesse
Vijay, For the Uri.base to return "window.location.href" in Dartium (and not the file URI for ...
7 years, 3 months ago (2013-09-17 15:57:35 UTC) #7
vsm
On 2013/09/17 15:57:35, Søren Gjesse wrote: > Vijay, > > For the Uri.base to return ...
7 years, 3 months ago (2013-09-17 16:13:00 UTC) #8
Ivan Posva
Please provide a hook that the embedder (Dartium or standalone) can use to provide the ...
7 years, 3 months ago (2013-09-17 21:28:04 UTC) #9
Søren Gjesse
PTAL Added embedder hook and some support for JavaScript shells.
7 years, 3 months ago (2013-09-18 08:37:02 UTC) #10
floitsch
DBC. (letting VM and dart2js give the LGTM). If some things don't work on windows, ...
7 years, 3 months ago (2013-09-18 09:06:26 UTC) #11
Ivan Posva
LGTM -Ivan
7 years, 3 months ago (2013-09-24 07:37:41 UTC) #12
Ivan Posva
On 2013/09/24 07:37:41, Ivan Posva wrote: > LGTM > > -Ivan And please work with ...
7 years, 3 months ago (2013-09-24 07:38:17 UTC) #13
Søren Gjesse
https://codereview.chromium.org/23686021/diff/3001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/23686021/diff/3001/sdk/lib/core/uri.dart#newcode364 sdk/lib/core/uri.dart:364: * When running in the browser this will be ...
7 years, 2 months ago (2013-09-25 09:17:07 UTC) #14
Søren Thygesen Gjesse
7 years, 2 months ago (2013-09-25 13:52:34 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 manually as r27877 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698