Index: chrome_frame/urlmon_url_request.cc |
=================================================================== |
--- chrome_frame/urlmon_url_request.cc (revision 159988) |
+++ chrome_frame/urlmon_url_request.cc (working copy) |
@@ -14,6 +14,7 @@ |
#include "base/message_loop.h" |
#include "base/string_number_conversions.h" |
#include "base/stringprintf.h" |
+#include "base/threading/com_thread.h" |
#include "base/threading/platform_thread.h" |
#include "base/utf_string_conversions.h" |
#include "chrome/common/automation_messages.h" |
@@ -1401,8 +1402,8 @@ |
privileged_mode_(false), |
container_(NULL), |
background_worker_thread_enabled_(true) { |
- background_thread_.reset(new ResourceFetcherThread( |
- "cf_iexplore_background_thread")); |
+ background_thread_.reset( |
+ new base::ComThread("cf_iexplore_background_thread", false)); |
background_worker_thread_enabled_ = |
GetConfigBool(true, kUseBackgroundThreadForSubResources); |
if (background_worker_thread_enabled_) { |
@@ -1445,19 +1446,3 @@ |
0); |
} |
} |
- |
-UrlmonUrlRequestManager::ResourceFetcherThread::ResourceFetcherThread( |
- const char* name) : base::Thread(name) { |
-} |
- |
-UrlmonUrlRequestManager::ResourceFetcherThread::~ResourceFetcherThread() { |
- Stop(); |
-} |
- |
-void UrlmonUrlRequestManager::ResourceFetcherThread::Init() { |
- com_initializer_.reset(new base::win::ScopedCOMInitializer()); |
-} |
- |
-void UrlmonUrlRequestManager::ResourceFetcherThread::CleanUp() { |
- com_initializer_.reset(); |
-} |