Index: chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc |
diff --git a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc |
index 69451e2ebc5793c32af82cee74a6ece24121adf5..74a0164cfd7ae66f1ad03fab951751d405079db6 100644 |
--- a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc |
+++ b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h" |
+#include <utility> |
+ |
#include "base/lazy_instance.h" |
#include "build/build_config.h" |
#include "chrome/browser/extensions/api/braille_display_private/braille_controller.h" |
@@ -67,7 +69,7 @@ void BrailleDisplayPrivateAPI::OnBrailleDisplayStateChanged( |
new Event(events::BRAILLE_DISPLAY_PRIVATE_ON_DISPLAY_STATE_CHANGED, |
OnDisplayStateChanged::kEventName, |
OnDisplayStateChanged::Create(display_state))); |
- event_delegate_->BroadcastEvent(event.Pass()); |
+ event_delegate_->BroadcastEvent(std::move(event)); |
} |
void BrailleDisplayPrivateAPI::OnBrailleKeyEvent(const KeyEvent& key_event) { |
@@ -77,7 +79,7 @@ void BrailleDisplayPrivateAPI::OnBrailleKeyEvent(const KeyEvent& key_event) { |
scoped_ptr<Event> event( |
new Event(events::BRAILLE_DISPLAY_PRIVATE_ON_KEY_EVENT, |
OnKeyEvent::kEventName, OnKeyEvent::Create(key_event))); |
- event_delegate_->BroadcastEvent(event.Pass()); |
+ event_delegate_->BroadcastEvent(std::move(event)); |
} |
bool BrailleDisplayPrivateAPI::IsProfileActive() { |
@@ -101,7 +103,7 @@ bool BrailleDisplayPrivateAPI::IsProfileActive() { |
void BrailleDisplayPrivateAPI::SetEventDelegateForTest( |
scoped_ptr<EventDelegate> delegate) { |
- event_delegate_ = delegate.Pass(); |
+ event_delegate_ = std::move(delegate); |
} |
void BrailleDisplayPrivateAPI::OnListenerAdded( |
@@ -134,7 +136,7 @@ BrailleDisplayPrivateAPI::DefaultEventDelegate::~DefaultEventDelegate() { |
void BrailleDisplayPrivateAPI::DefaultEventDelegate::BroadcastEvent( |
scoped_ptr<Event> event) { |
- EventRouter::Get(profile_)->BroadcastEvent(event.Pass()); |
+ EventRouter::Get(profile_)->BroadcastEvent(std::move(event)); |
} |
bool BrailleDisplayPrivateAPI::DefaultEventDelegate::HasListener() { |