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

Side by Side Diff: content/browser/net/quota_policy_cookie_store.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/net/quota_policy_cookie_store.h" 5 #include "content/browser/net/quota_policy_cookie_store.h"
6 6
7 #include <list> 7 #include <list>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 cookie_monster.reset( 142 cookie_monster.reset(
143 new net::CookieMonster(nullptr, config.cookie_delegate.get())); 143 new net::CookieMonster(nullptr, config.cookie_delegate.get()));
144 } else { 144 } else {
145 scoped_refptr<base::SequencedTaskRunner> client_task_runner = 145 scoped_refptr<base::SequencedTaskRunner> client_task_runner =
146 config.client_task_runner; 146 config.client_task_runner;
147 scoped_refptr<base::SequencedTaskRunner> background_task_runner = 147 scoped_refptr<base::SequencedTaskRunner> background_task_runner =
148 config.background_task_runner; 148 config.background_task_runner;
149 149
150 if (!client_task_runner.get()) { 150 if (!client_task_runner.get()) {
151 client_task_runner = 151 client_task_runner =
152 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 152 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
153 } 153 }
154 154
155 if (!background_task_runner.get()) { 155 if (!background_task_runner.get()) {
156 background_task_runner = 156 background_task_runner =
157 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( 157 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
158 base::SequencedWorkerPool::GetSequenceToken()); 158 base::SequencedWorkerPool::GetSequenceToken());
159 } 159 }
160 160
161 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( 161 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store(
162 new net::SQLitePersistentCookieStore( 162 new net::SQLitePersistentCookieStore(
(...skipping 19 matching lines...) Expand all
182 } 182 }
183 } 183 }
184 184
185 if (!config.cookieable_schemes.empty()) 185 if (!config.cookieable_schemes.empty())
186 cookie_monster->SetCookieableSchemes(config.cookieable_schemes); 186 cookie_monster->SetCookieableSchemes(config.cookieable_schemes);
187 187
188 return std::move(cookie_monster); 188 return std::move(cookie_monster);
189 } 189 }
190 190
191 } // namespace content 191 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/browser/notifications/platform_notification_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698