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

Unified Diff: chrome/browser/io_thread.cc

Issue 11434009: Ensure that NSS HTTP IO is initialized on iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add chrome/browser/io_thread.cc to the CL. Update OS_MACOSX related tests. 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
« no previous file with comments | « no previous file | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
===================================================================
--- chrome/browser/io_thread.cc (revision 168842)
+++ chrome/browser/io_thread.cc (working copy)
@@ -60,9 +60,9 @@
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_throttler_manager.h"
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
#include "net/ocsp/nss_ocsp.h"
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS) || defined(OS_IOS)
wtc 2012/11/29 19:24:33 Please let me know if you prefer that I simply rem
Ryan Sleevi 2012/11/29 20:35:13 Agreed
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/proxy_config_service_impl.h"
@@ -88,16 +88,16 @@
class SystemURLRequestContext : public net::URLRequestContext {
public:
SystemURLRequestContext() {
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
net::SetURLRequestContextForNSSHttpIO(this);
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS) || defined(OS_IOS)
}
private:
virtual ~SystemURLRequestContext() {
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
net::SetURLRequestContextForNSSHttpIO(NULL);
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS) || defined(OS_IOS)
}
};
@@ -412,9 +412,9 @@
void IOThread::Init() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
net::SetMessageLoopForNSSHttpIO();
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS) || defined(OS_IOS)
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
@@ -575,9 +575,9 @@
delete sdch_manager_;
sdch_manager_ = NULL;
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
net::ShutdownNSSHttpIO();
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS) || defined(OS_IOS)
system_url_request_context_getter_ = NULL;
« no previous file with comments | « no previous file | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698