summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/mojo
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-18 09:48:00 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-18 17:48:52 +0000
commite59eca16010c109a5e3e4922189c8b264d34caa9 (patch)
tree838815399c6364a99a465938df9978aeaf75c766 /extensions/renderer/mojo
parent5100baf1eac806abbdaaf8002887aacf652f34e5 (diff)
downloadchromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.zip
chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.gz
chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.bz2
Convert Pass()→std::move() in //extensions
BUG=557422 Review URL: https://codereview.chromium.org/1537893002 Cr-Commit-Position: refs/heads/master@{#366120}
Diffstat (limited to 'extensions/renderer/mojo')
-rw-r--r--extensions/renderer/mojo/keep_alive_client_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/renderer/mojo/keep_alive_client_unittest.cc b/extensions/renderer/mojo/keep_alive_client_unittest.cc
index 391d03b..2d9c63c 100644
--- a/extensions/renderer/mojo/keep_alive_client_unittest.cc
+++ b/extensions/renderer/mojo/keep_alive_client_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "extensions/common/mojo/keep_alive.mojom.h"
#include "extensions/renderer/api_test_base.h"
#include "grit/extensions_renderer_resources.h"
@@ -19,14 +21,15 @@ class TestKeepAlive : public KeepAlive {
public:
TestKeepAlive(const base::Closure& on_destruction,
mojo::InterfaceRequest<KeepAlive> keep_alive)
- : on_destruction_(on_destruction), binding_(this, keep_alive.Pass()) {}
+ : on_destruction_(on_destruction),
+ binding_(this, std::move(keep_alive)) {}
~TestKeepAlive() override { on_destruction_.Run(); }
static void Create(const base::Closure& on_creation,
const base::Closure& on_destruction,
mojo::InterfaceRequest<KeepAlive> keep_alive) {
- new TestKeepAlive(on_destruction, keep_alive.Pass());
+ new TestKeepAlive(on_destruction, std::move(keep_alive));
on_creation.Run();
}