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

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

Issue 1567983003: call static SequencedWorkerPool::GetSequenceToken() method directly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop WARN_UNUSED_RESULT change and call static method directly Created 4 years, 11 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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 config.background_task_runner; 147 config.background_task_runner;
148 148
149 if (!client_task_runner.get()) { 149 if (!client_task_runner.get()) {
150 client_task_runner = 150 client_task_runner =
151 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 151 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
152 } 152 }
153 153
154 if (!background_task_runner.get()) { 154 if (!background_task_runner.get()) {
155 background_task_runner = 155 background_task_runner =
156 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( 156 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
157 BrowserThread::GetBlockingPool()->GetSequenceToken()); 157 base::SequencedWorkerPool::GetSequenceToken());
158 } 158 }
159 159
160 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( 160 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store(
161 new net::SQLitePersistentCookieStore( 161 new net::SQLitePersistentCookieStore(
162 config.path, 162 config.path,
163 client_task_runner, 163 client_task_runner,
164 background_task_runner, 164 background_task_runner,
165 (config.session_cookie_mode == 165 (config.session_cookie_mode ==
166 CookieStoreConfig::RESTORED_SESSION_COOKIES), 166 CookieStoreConfig::RESTORED_SESSION_COOKIES),
167 config.crypto_delegate)); 167 config.crypto_delegate));
(...skipping 10 matching lines...) Expand all
178 (config.session_cookie_mode == 178 (config.session_cookie_mode ==
179 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { 179 CookieStoreConfig::RESTORED_SESSION_COOKIES)) {
180 cookie_monster->SetPersistSessionCookies(true); 180 cookie_monster->SetPersistSessionCookies(true);
181 } 181 }
182 } 182 }
183 183
184 return cookie_monster; 184 return cookie_monster;
185 } 185 }
186 186
187 } // namespace content 187 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage_context_impl.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698