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

Unified Diff: lib/src/runner/browser/platform.dart

Issue 1829533002: Drop the crypto dependency. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/platform.dart
diff --git a/lib/src/runner/browser/platform.dart b/lib/src/runner/browser/platform.dart
index 9603212a1f428a05682e1d6c84846e539ca257f7..f1a4b2999f795a463911c995d1c47df7f295cf73 100644
--- a/lib/src/runner/browser/platform.dart
+++ b/lib/src/runner/browser/platform.dart
@@ -49,7 +49,7 @@ class BrowserPlatform extends PlatformPlugin {
///
/// This is used to ensure that other users on the same system can't snoop
/// on data being served through this server.
- final _secret = randomBase64(24, urlSafe: true);
+ final _secret = Uri.encodeComponent(randomBase64(24));
/// The URL for this server.
Uri get url => _server.url.resolve(_secret + "/");
« no previous file with comments | « no previous file | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698