Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / utility / utility_blink_platform_impl.cc
blobb3b73bcbf1f000758a19d86d5ddcc0813344c88d
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
3 // found in the LICENSE file.
5 #include "content/utility/utility_blink_platform_impl.h"
7 #include "content/utility/webthread_impl_for_utility_thread.h"
9 namespace content {
11 UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl()
12 : main_thread_(new WebThreadImplForUtilityThread()) {
15 UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() {
18 blink::WebThread* UtilityBlinkPlatformImpl::currentThread() {
19 if (main_thread_->isCurrentThread())
20 return main_thread_.get();
21 return BlinkPlatformImpl::currentThread();
24 } // namespace content