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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc

Issue 2871523002: Use OnceCallback on Mojo interfaces in //content (Closed)
Patch Set: . Created 3 years, 7 months 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/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc b/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc
index fa83b6a6403c4b5c5ade0d13171c302fe66a5c96..7595cd1ab17e80f6b5c00b6de9512e2e6672b744 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc
@@ -5,6 +5,7 @@
#include "content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h"
#include <string>
+#include <utility>
#include "base/memory/ptr_util.h"
#include "content/public/test/layouttest_support.h"
@@ -31,13 +32,13 @@ void LayoutTestBluetoothFakeAdapterSetterImpl::Create(
void LayoutTestBluetoothFakeAdapterSetterImpl::Set(
const std::string& adapter_name,
- const SetCallback& callback) {
+ SetCallback callback) {
SetTestBluetoothScanDuration();
device::BluetoothAdapterFactoryWrapper::Get().SetBluetoothAdapterForTesting(
LayoutTestBluetoothAdapterProvider::GetBluetoothAdapter(adapter_name));
- callback.Run();
+ std::move(callback).Run();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698