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

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: Sync with ToT Created 8 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 | 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 170598)
+++ chrome/browser/io_thread.cc (working copy)
@@ -67,9 +67,9 @@
#include "policy/policy_constants.h"
#endif
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
Nico 2012/12/01 01:41:21 Is NSS used on IOS? If so, should USE_NSS be set w
wtc 2012/12/01 02:19:43 NSS is used on iOS to verify certificates. The tes
#include "net/ocsp/nss_ocsp.h"
-#endif // defined(USE_NSS)
+#endif
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/proxy_config_service_impl.h"
@@ -95,16 +95,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
}
private:
virtual ~SystemURLRequestContext() {
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
net::SetURLRequestContextForNSSHttpIO(NULL);
-#endif // defined(USE_NSS)
+#endif
}
};
@@ -436,9 +436,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
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
@@ -574,9 +574,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
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