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

Unified Diff: sdk/lib/_internal/pub/lib/src/http.dart

Issue 107193006: Remove unused expired certificate, and database, from pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Patch create_sdk.py. Created 7 years 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 | sdk/lib/_internal/pub/resource/certs/cert9.db » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/http.dart
diff --git a/sdk/lib/_internal/pub/lib/src/http.dart b/sdk/lib/_internal/pub/lib/src/http.dart
index 017b387f4d23ff71d962dd56f161dfbbffb56574..afaefd81b9795d28ba73942975897e7facccce38 100644
--- a/sdk/lib/_internal/pub/lib/src/http.dart
+++ b/sdk/lib/_internal/pub/lib/src/http.dart
@@ -32,10 +32,6 @@ final _CENSORED_FIELDS = const ['refresh_token', 'authorization'];
/// it's not supported.
final PUB_API_HEADERS = const {'Accept': 'application/vnd.pub.v2+json'};
-/// Whether dart:io's SecureSocket has been initialized with pub's resources
-/// yet.
-bool _initializedSecureSocket = false;
-
/// An HTTP client that transforms 40* errors and socket exceptions into more
/// user-friendly error messages.
class PubHttpClient extends http.BaseClient {
@@ -44,11 +40,7 @@ class PubHttpClient extends http.BaseClient {
http.Client inner;
PubHttpClient([http.Client inner])
- : this.inner = inner == null ? new http.Client() : inner {
- if (!_initializedSecureSocket) {
- SecureSocket.initialize(database: resourcePath('certs'));
- }
- }
+ : this.inner = inner == null ? new http.Client() : inner;
Future<http.StreamedResponse> send(http.BaseRequest request) {
_requestStopwatches[request] = new Stopwatch()..start();
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/resource/certs/cert9.db » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698