Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -41,16 +41,15 @@ CefRefPtr<CefThread> CefThread::CreateThread(
return thread_impl;
}
CefThreadImpl::CefThreadImpl()
: thread_id_(kInvalidPlatformThreadId) {
}
CefThreadImpl::CefThreadImpl() : thread_id_(kInvalidPlatformThreadId) {}
CefThreadImpl::~CefThreadImpl() {
if (thread_.get()) {
if (!owner_task_runner_->RunsTasksOnCurrentThread()) {
// Delete |thread_| on the correct thread.
owner_task_runner_->PostTask(FROM_HERE,
base::Bind(StopAndDestroy, base::Unretained(thread_.release())));
owner_task_runner_->PostTask(
FROM_HERE,
base::Bind(StopAndDestroy, base::Unretained(thread_.release())));
} else {
StopAndDestroy(thread_.release());
}