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

Unified Diff: runtime/bin/secure_socket_patch.dart

Issue 11308271: Add built-in root certificates to dart:io SecureSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js errors on new dart:io stuff. Created 8 years, 1 month 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
Index: runtime/bin/secure_socket_patch.dart
diff --git a/runtime/bin/secure_socket_patch.dart b/runtime/bin/secure_socket_patch.dart
index 34edc7e12c395f9106f0374700e64937ad71b046..9bea4747cee6ff689b30634fbd606af9939a48ed 100644
--- a/runtime/bin/secure_socket_patch.dart
+++ b/runtime/bin/secure_socket_patch.dart
@@ -3,9 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
patch class SecureSocket {
- /* patch */ static void setCertificateDatabase(String certificateDatabase,
- [String password])
- native "SecureSocket_SetCertificateDatabase";
+ /* patch */ static void initialize({String database,
+ String password,
+ bool useBuiltinRoots: true})
+ native "SecureSocket_InitializeLibrary";
}

Powered by Google App Engine
This is Rietveld 408576698