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

Side by Side Diff: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "platform/threading/BackgroundTaskRunner.h" 5 #include "platform/threading/BackgroundTaskRunner.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/task_scheduler/post_task.h" 8 #include "base/task_scheduler/post_task.h"
9 #include "public/platform/WebTraceLocation.h" 9 #include "public/platform/WebTraceLocation.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 void BackgroundTaskRunner::postOnBackgroundThread( 13 void BackgroundTaskRunner::postOnBackgroundThread(
14 const WebTraceLocation& location, 14 const WebTraceLocation& location,
15 std::unique_ptr<CrossThreadClosure> closure) { 15 std::unique_ptr<CrossThreadClosure> closure) {
16 base::PostTaskWithTraits( 16 base::PostTaskWithTraits(
17 location, base::TaskTraits().WithShutdownBehavior( 17 location,
18 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN), 18 base::TaskTraits().WithShutdownBehavior(
19 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
19 convertToBaseCallback(std::move(closure))); 20 convertToBaseCallback(std::move(closure)));
20 } 21 }
21 22
22 } // namespace blink 23 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698