Commit 92469c8c authored by dcheng's avatar dcheng Committed by Commit bot

Remove Pass() on Android.

Pass() is a legacy of the original C++03 move emulation implementation.
New code should use std::move from <utility>.

❆(੭ु ◜◡‾)੭ु⁾❆

BUG=557422
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1559603002

Cr-Commit-Position: refs/heads/master@{#367251}
parent 92ec24ea
......@@ -402,7 +402,7 @@ TEST(ScopedPtrTest, MoveBehavior) {
EXPECT_TRUE(scoper3.get());
}
#if !(defined(OS_LINUX) && !defined(OS_CHROMEOS))
#if !(defined(OS_ANDROID) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)))
// Test uncaught Pass() does not have side effects, because Pass()
// is implemented by std::move().
// TODO(danakj): Remove this test case when we remove Pass().
......
......@@ -31,7 +31,7 @@
// for more details.
// TODO(crbug.com/566182): Remove this macro and use DISALLOW_COPY_AND_ASSIGN
// everywhere instead.
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
#if defined(OS_ANDROID) || (defined(OS_LINUX) && !defined(OS_CHROMEOS))
#define DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type) \
private: \
type(const type&) = delete; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment