Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: content/browser/battery_status/battery_monitor_impl_browsertest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/battery_status/battery_monitor_impl_browsertest.cc
diff --git a/content/browser/battery_status/battery_monitor_impl_browsertest.cc b/content/browser/battery_status/battery_monitor_impl_browsertest.cc
index 4c6a7e5f0f3c2fc1b5eeffce401a19e3e1cc340f..8e4b6bc89d7cc195165bbd02f9fe667197c374c7 100644
--- a/content/browser/battery_status/battery_monitor_impl_browsertest.cc
+++ b/content/browser/battery_status/battery_monitor_impl_browsertest.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 "base/macros.h"
#include "base/thread_task_runner_handle.h"
#include "content/public/browser/web_contents.h"
@@ -77,7 +79,7 @@ class BatteryMonitorImplTest : public ContentBrowserTest {
battery_service_->GetUpdateCallbackForTesting()));
battery_manager_ = battery_manager.get();
- battery_service_->SetBatteryManagerForTesting(battery_manager.Pass());
+ battery_service_->SetBatteryManagerForTesting(std::move(battery_manager));
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698