Index: net/ssl/channel_id_service.cc |
diff --git a/net/ssl/channel_id_service.cc b/net/ssl/channel_id_service.cc |
index 7fcbc539b32187d0e1abcacc140a62eb88672876..cc33ce19c673c4c7e5f0d73048a62da1a6e826df 100644 |
--- a/net/ssl/channel_id_service.cc |
+++ b/net/ssl/channel_id_service.cc |
@@ -15,11 +15,11 @@ |
#include "base/logging.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop_proxy.h" |
#include "base/metrics/histogram.h" |
#include "base/rand_util.h" |
#include "base/stl_util.h" |
#include "base/task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "crypto/ec_private_key.h" |
#include "net/base/net_errors.h" |
#include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
@@ -219,14 +219,12 @@ class ChannelIDServiceWorker { |
int, |
scoped_ptr<ChannelIDStore::ChannelID>)> WorkerDoneCallback; |
- ChannelIDServiceWorker( |
- const std::string& server_identifier, |
- const WorkerDoneCallback& callback) |
+ ChannelIDServiceWorker(const std::string& server_identifier, |
+ const WorkerDoneCallback& callback) |
: server_identifier_(server_identifier), |
serial_number_(base::RandInt(0, std::numeric_limits<int>::max())), |
- origin_loop_(base::MessageLoopProxy::current()), |
- callback_(callback) { |
- } |
+ origin_loop_(base::ThreadTaskRunnerHandle::Get()), |
+ callback_(callback) {} |
// Starts the worker on |task_runner|. If the worker fails to start, such as |
// if the task runner is shutting down, then it will take care of deleting |