diff options
author | pranay.kumar <pranay.kumar@samsung.com> | 2015-05-05 05:12:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-05 12:13:21 +0000 |
commit | 7b7ceb183957fc55735153fbacb73a012a69b2cf (patch) | |
tree | 0935c9c2dd8ca6d1128d5e7ed7032184805309cb /extensions/renderer/api | |
parent | ac428e932505db7625e3f96c4fd8a088a0311778 (diff) | |
download | chromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.zip chromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.tar.gz chromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.tar.bz2 |
Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in extensions module.
MessageLoopProxy is deprecated.
This basically does a search and replace of:
MessageLoopProxy::current() -> ThreadTaskRunnerHandle::Get().
MessageLoopProxy -> SingleThreadTaskRunner
BUG=391045
Review URL: https://codereview.chromium.org/1120793007
Cr-Commit-Position: refs/heads/master@{#328313}
Diffstat (limited to 'extensions/renderer/api')
-rw-r--r-- | extensions/renderer/api/serial/serial_api_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/renderer/api/serial/serial_api_unittest.cc b/extensions/renderer/api/serial/serial_api_unittest.cc index 0d247b9..508c4a0 100644 --- a/extensions/renderer/api/serial/serial_api_unittest.cc +++ b/extensions/renderer/api/serial/serial_api_unittest.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/thread_task_runner_handle.h" #include "device/serial/serial_device_enumerator.h" #include "device/serial/serial_service_impl.h" #include "device/serial/test_serial_io_handler.h" @@ -439,7 +440,7 @@ class SerialApiTest : public ApiTestBase { new device::SerialConnectionFactory( base::Bind(&SerialApiTest::GetIoHandler, base::Unretained(this)), - base::MessageLoopProxy::current()), + base::ThreadTaskRunnerHandle::Get()), scoped_ptr<device::SerialDeviceEnumerator>( new FakeSerialDeviceEnumerator)), &request); |