Chromium Code Reviews| Index: runtime/lib/platform_patch.dart |
| diff --git a/runtime/lib/platform_patch.dart b/runtime/lib/platform_patch.dart |
| index 8df6d946c9c5d72ba154d01612807fdee14cbe56..dedbf5dbd245917fd007285b961706e3fd9524fb 100644 |
| --- a/runtime/lib/platform_patch.dart |
| +++ b/runtime/lib/platform_patch.dart |
| @@ -2,3 +2,54 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| +patch class _PatchWorkaround { |
| + /* patch */ static _Platform get _platform { |
| + return _platformHook; |
| + } |
| +} |
| + |
| +// A non-default _Platform, with real values, is stored here by the embedder. |
| +_Platform _platformHook = new _DefaultPlatform(); |
| + |
| + |
| +class _DefaultPlatform implements _Platform { |
| + int get numberOfProcessors { |
| + return null; |
| + } |
| + |
| + String get pathSeparator { |
| + return "/"; |
|
Ivan Posva
2013/10/25 17:03:48
null
Bill Hesse
2013/10/25 17:50:00
Are you ok with making this "/" on Dartium, when a
|
| + } |
| + |
| + String get operatingSystem { |
| + return null; |
| + } |
| + |
| + String get localHostname { |
| + return null; |
| + } |
| + |
| + String get version { |
| + return null; |
| + } |
| + |
| + Map get environment { |
| + return null; |
| + } |
| + |
| + String get script { |
| + return null; |
| + } |
| + |
| + String get executable { |
| + return null; |
| + } |
| + |
| + List<String> get executableArguments { |
| + return new List<String>(0); |
| + } |
| + |
| + String get packageRoot { |
| + return null; |
| + } |
| +} |