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

Side by Side Diff: extensions/browser/updater/update_client_config.cc

Issue 2859933002: Use constexpr TaskTraits constructor in extensions. (Closed)
Patch Set: 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 | « extensions/browser/image_loader.cc ('k') | extensions/browser/updater/update_data_provider.cc » ('j') | 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 "extensions/browser/updater/update_client_config.h" 5 #include "extensions/browser/updater/update_client_config.h"
6 6
7 #include "base/task_scheduler/post_task.h" 7 #include "base/task_scheduler/post_task.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 UpdateClientConfig::UpdateClientConfig() {} 11 UpdateClientConfig::UpdateClientConfig() {}
12 12
13 scoped_refptr<base::SequencedTaskRunner> 13 scoped_refptr<base::SequencedTaskRunner>
14 UpdateClientConfig::GetSequencedTaskRunner() const { 14 UpdateClientConfig::GetSequencedTaskRunner() const {
15 return base::CreateSequencedTaskRunnerWithTraits( 15 return base::CreateSequencedTaskRunnerWithTraits(
16 base::TaskTraits() 16 {base::MayBlock(), base::TaskPriority::BACKGROUND,
17 .MayBlock() 17 base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN});
18 .WithPriority(base::TaskPriority::BACKGROUND)
19 .WithShutdownBehavior(base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN));
20 } 18 }
21 19
22 UpdateClientConfig::~UpdateClientConfig() {} 20 UpdateClientConfig::~UpdateClientConfig() {}
23 21
24 } // namespace extensions 22 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/image_loader.cc ('k') | extensions/browser/updater/update_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698