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

Side by Side Diff: remoting/base/auto_thread_task_runner.cc

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed media_unittests Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/base/auto_thread_task_runner.h" 5 #include "remoting/base/auto_thread_task_runner.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 10
(...skipping 18 matching lines...) Expand all
29 const base::Closure& task, 29 const base::Closure& task,
30 base::TimeDelta delay) { 30 base::TimeDelta delay) {
31 CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay)); 31 CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay));
32 return true; 32 return true;
33 } 33 }
34 34
35 bool AutoThreadTaskRunner::RunsTasksOnCurrentThread() const { 35 bool AutoThreadTaskRunner::RunsTasksOnCurrentThread() const {
36 return task_runner_->RunsTasksOnCurrentThread(); 36 return task_runner_->RunsTasksOnCurrentThread();
37 } 37 }
38 38
39 std::string AutoThreadTaskRunner::GetThreadName() const {
40 return task_runner_->GetThreadName();
41 }
42
39 AutoThreadTaskRunner::~AutoThreadTaskRunner() { 43 AutoThreadTaskRunner::~AutoThreadTaskRunner() {
40 CHECK(task_runner_->PostTask(FROM_HERE, stop_task_)); 44 CHECK(task_runner_->PostTask(FROM_HERE, stop_task_));
41 } 45 }
42 46
43 } // namespace remoting 47 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698