From 3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 14 Aug 2015 11:38:45 +0200 Subject: BASELINE: Update chromium to 45.0.2454.40 Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4 Reviewed-by: Andras Becsi --- chromium/net/http/mock_http_cache.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'chromium/net/http/mock_http_cache.cc') diff --git a/chromium/net/http/mock_http_cache.cc b/chromium/net/http/mock_http_cache.cc index dd8abd71bb0..d89993ccba3 100644 --- a/chromium/net/http/mock_http_cache.cc +++ b/chromium/net/http/mock_http_cache.cc @@ -5,7 +5,9 @@ #include "net/http/mock_http_cache.h" #include "base/bind.h" -#include "base/message_loop/message_loop.h" +#include "base/location.h" +#include "base/single_thread_task_runner.h" +#include "base/thread_task_runner_handle.h" #include "net/base/completion_callback.h" #include "net/base/net_errors.h" #include "testing/gtest/include/gtest/gtest.h" @@ -297,7 +299,7 @@ void MockDiskEntry::CallbackLater(const CompletionCallback& callback, int result) { if (ignore_callbacks_) return StoreAndDeliverCallbacks(true, this, callback, result); - base::MessageLoop::current()->PostTask( + base::ThreadTaskRunnerHandle::Get()->PostTask( FROM_HERE, base::Bind(&MockDiskEntry::RunCallback, this, callback, result)); } @@ -498,7 +500,7 @@ void MockDiskCache::ReleaseAll() { void MockDiskCache::CallbackLater(const CompletionCallback& callback, int result) { - base::MessageLoop::current()->PostTask( + base::ThreadTaskRunnerHandle::Get()->PostTask( FROM_HERE, base::Bind(&CallbackForwader, callback, result)); } @@ -564,7 +566,7 @@ bool MockHttpCache::WriteResponseInfo(disk_cache::Entry* disk_entry, const HttpResponseInfo* response_info, bool skip_transient_headers, bool response_truncated) { - Pickle pickle; + base::Pickle pickle; response_info->Persist( &pickle, skip_transient_headers, response_truncated); -- cgit v1.2.1