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

Unified Diff: net/base/run_all_unittests.cc

Issue 11959029: Make the v8 Isolate used in the proxy resolver explicit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 11 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
Index: net/base/run_all_unittests.cc
diff --git a/net/base/run_all_unittests.cc b/net/base/run_all_unittests.cc
index 57a18b815a82b615a7e3a5c83b14a52011cf9e02..f0e817692cb9f86031cff86140b954094ec04671 100644
--- a/net/base/run_all_unittests.cc
+++ b/net/base/run_all_unittests.cc
@@ -16,6 +16,10 @@
#include "net/android/net_jni_registrar.h"
#endif
+#if !defined(OS_IOS)
+#include "net/proxy/proxy_resolver_v8.h"
+#endif
+
using net::internal::ClientSocketPoolBaseHelper;
using net::SpdySession;
@@ -43,5 +47,10 @@ int main(int argc, char** argv) {
// single-threaded.
net::EnableSSLServerSockets();
+#if !defined(OS_IOS)
+ // This has to be done on the main thread.
+ net::ProxyResolverV8::RememberDefaultIsolate();
+#endif
+
return test_suite.Run();
}

Powered by Google App Engine
This is Rietveld 408576698