| OLD | NEW |
| 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/utility/utility_blink_platform_impl.h" | 5 #include "content/utility/utility_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/public/platform/scheduler/utility/webthread_impl_fo
r_utility_thread.h" | 7 #include "third_party/WebKit/public/platform/scheduler/child/webthread_base.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl() | 11 UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl() |
| 12 : main_thread_(new blink::scheduler::WebThreadImplForUtilityThread()) {} | 12 : main_thread_(blink::scheduler::WebThreadBase::InitializeUtilityThread()) { |
| 13 } |
| 13 | 14 |
| 14 UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() { | 15 UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() { |
| 15 } | 16 } |
| 16 | 17 |
| 17 blink::WebThread* UtilityBlinkPlatformImpl::CurrentThread() { | 18 blink::WebThread* UtilityBlinkPlatformImpl::CurrentThread() { |
| 18 if (main_thread_->IsCurrentThread()) | 19 if (main_thread_->IsCurrentThread()) |
| 19 return main_thread_.get(); | 20 return main_thread_.get(); |
| 20 return BlinkPlatformImpl::CurrentThread(); | 21 return BlinkPlatformImpl::CurrentThread(); |
| 21 } | 22 } |
| 22 | 23 |
| 23 } // namespace content | 24 } // namespace content |
| OLD | NEW |