Index: components/subresource_filter/content/browser/content_ruleset_service_unittest.cc |
diff --git a/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc b/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc |
index 8f53bf91021ab9b0116dd64992bc8b8673355c35..b7914875dce61a1bfb829f4509d82772ae0f1dd4 100644 |
--- a/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc |
+++ b/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc |
@@ -48,17 +48,17 @@ class TestContentBrowserClient : public ::content::ContentBrowserClient { |
// ::content::ContentBrowserClient: |
void PostAfterStartupTask(const tracked_objects::Location&, |
const scoped_refptr<base::TaskRunner>& task_runner, |
- const base::Closure& task) override { |
+ base::Closure task) override { |
scoped_refptr<base::TaskRunner> ui_task_runner = |
content::BrowserThread::GetTaskRunnerForThread( |
content::BrowserThread::UI); |
EXPECT_EQ(ui_task_runner, task_runner); |
- last_task_ = task; |
+ last_task_ = std::move(task); |
} |
void RunAfterStartupTask() { |
if (!last_task_.is_null()) |
- last_task_.Run(); |
+ std::move(last_task_).Run(); |
} |
private: |