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

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

Issue 2869703003: Use TaskShutdownBehavior::BLOCK_SHUTDOWN in content::CreateCookieStore(). (Closed)
Patch Set: re-enable test Created 3 years, 7 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
« no previous file with comments | « chrome/browser/sessions/better_session_restore_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 scoped_refptr<base::SequencedTaskRunner> background_task_runner = 148 scoped_refptr<base::SequencedTaskRunner> background_task_runner =
149 config.background_task_runner; 149 config.background_task_runner;
150 150
151 if (!client_task_runner.get()) { 151 if (!client_task_runner.get()) {
152 client_task_runner = 152 client_task_runner =
153 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); 153 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
154 } 154 }
155 155
156 if (!background_task_runner.get()) { 156 if (!background_task_runner.get()) {
157 background_task_runner = base::CreateSequencedTaskRunnerWithTraits( 157 background_task_runner = base::CreateSequencedTaskRunnerWithTraits(
158 {base::MayBlock(), base::TaskPriority::BACKGROUND}); 158 {base::MayBlock(), base::TaskPriority::BACKGROUND,
159 base::TaskShutdownBehavior::BLOCK_SHUTDOWN});
159 } 160 }
160 161
161 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( 162 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store(
162 new net::SQLitePersistentCookieStore( 163 new net::SQLitePersistentCookieStore(
163 config.path, 164 config.path,
164 client_task_runner, 165 client_task_runner,
165 background_task_runner, 166 background_task_runner,
166 (config.session_cookie_mode == 167 (config.session_cookie_mode ==
167 CookieStoreConfig::RESTORED_SESSION_COOKIES), 168 CookieStoreConfig::RESTORED_SESSION_COOKIES),
168 config.crypto_delegate)); 169 config.crypto_delegate));
(...skipping 13 matching lines...) Expand all
182 } 183 }
183 } 184 }
184 185
185 if (!config.cookieable_schemes.empty()) 186 if (!config.cookieable_schemes.empty())
186 cookie_monster->SetCookieableSchemes(config.cookieable_schemes); 187 cookie_monster->SetCookieableSchemes(config.cookieable_schemes);
187 188
188 return std::move(cookie_monster); 189 return std::move(cookie_monster);
189 } 190 }
190 191
191 } // namespace content 192 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/sessions/better_session_restore_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698