Index: net/url_request/url_request_job_manager.cc |
diff --git a/net/url_request/url_request_job_manager.cc b/net/url_request/url_request_job_manager.cc |
index 1bc0be1214a15276126e08f4b1942b4e44951d9c..117c15acdfb20c1e1cb6445eb0011baf4c6d052d 100644 |
--- a/net/url_request/url_request_job_manager.cc |
+++ b/net/url_request/url_request_job_manager.cc |
@@ -7,6 +7,7 @@ |
#include <algorithm> |
#include "build/build_config.h" |
+#include "base/singleton.h" |
#include "base/string_util.h" |
#include "net/base/load_flags.h" |
#include "net/base/net_errors.h" |
@@ -45,6 +46,11 @@ URLRequestJobManager::URLRequestJobManager() : enable_file_access_(false) { |
URLRequestJobManager::~URLRequestJobManager() {} |
+// static |
+URLRequestJobManager* URLRequestJobManager::GetInstance() { |
+ return Singleton<URLRequestJobManager>::get(); |
+} |
+ |
URLRequestJob* URLRequestJobManager::CreateJob(net::URLRequest* request) const { |
#ifndef NDEBUG |
DCHECK(IsAllowedThread()); |