Commit 5644e93e authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Fix for unused-lambda-capture warning

This CL is part of
https://chromium-review.googlesource.com/c/chromium/src/+/1286017

This CL was uploaded by git cl split.

R=petewil@chromium.org

Bug: 681136
Change-Id: I9ee910da99a5c3d34039be1e61d9eb44819cddee
Reviewed-on: https://chromium-review.googlesource.com/c/1288492Reviewed-by: default avatarPeter Williamson <petewil@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600991}
parent 79f4c0fd
...@@ -263,12 +263,11 @@ class PrefetchDispatcherTest : public PrefetchRequestTestBase { ...@@ -263,12 +263,11 @@ class PrefetchDispatcherTest : public PrefetchRequestTestBase {
void ExpectHasThumbnailForOfflineId(int64_t offline_id, bool to_return) { void ExpectHasThumbnailForOfflineId(int64_t offline_id, bool to_return) {
EXPECT_CALL(*offline_model_, HasThumbnailForOfflineId(offline_id, _)) EXPECT_CALL(*offline_model_, HasThumbnailForOfflineId(offline_id, _))
.WillOnce( .WillOnce([&, to_return](int64_t offline_id,
[&, offline_id, to_return]( base::OnceCallback<void(bool)> callback) {
int64_t offline_id, base::OnceCallback<void(bool)> callback) { task_runner()->PostTask(
task_runner()->PostTask( FROM_HERE, base::BindOnce(std::move(callback), to_return));
FROM_HERE, base::BindOnce(std::move(callback), to_return)); });
});
} }
PrefetchDispatcherImpl* dispatcher() { return dispatcher_; } PrefetchDispatcherImpl* dispatcher() { return dispatcher_; }
......
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