Index: chrome/browser/extensions/api/dial/dial_api.cc |
diff --git a/chrome/browser/extensions/api/dial/dial_api.cc b/chrome/browser/extensions/api/dial/dial_api.cc |
index daae99f3e714729b7d125171de3b2a21f0558c57..a0a36cec301135a25fd5107eef61c055154baf27 100644 |
--- a/chrome/browser/extensions/api/dial/dial_api.cc |
+++ b/chrome/browser/extensions/api/dial/dial_api.cc |
@@ -5,7 +5,7 @@ |
#include "chrome/browser/extensions/api/dial/dial_api.h" |
#include <stddef.h> |
- |
+#include <utility> |
#include <vector> |
#include "base/time/time.h" |
@@ -109,8 +109,8 @@ void DialAPI::SendEventOnUIThread(const DialRegistry::DeviceList& devices) { |
scoped_ptr<base::ListValue> results = api::dial::OnDeviceList::Create(args); |
scoped_ptr<Event> event(new Event(events::DIAL_ON_DEVICE_LIST, |
dial::OnDeviceList::kEventName, |
- results.Pass())); |
- EventRouter::Get(profile_)->BroadcastEvent(event.Pass()); |
+ std::move(results))); |
+ EventRouter::Get(profile_)->BroadcastEvent(std::move(event)); |
} |
void DialAPI::SendErrorOnUIThread(const DialRegistry::DialErrorCode code) { |
@@ -139,9 +139,9 @@ void DialAPI::SendErrorOnUIThread(const DialRegistry::DialErrorCode code) { |
} |
scoped_ptr<base::ListValue> results = api::dial::OnError::Create(dial_error); |
- scoped_ptr<Event> event(new Event(events::DIAL_ON_ERROR, |
- dial::OnError::kEventName, results.Pass())); |
- EventRouter::Get(profile_)->BroadcastEvent(event.Pass()); |
+ scoped_ptr<Event> event(new Event( |
+ events::DIAL_ON_ERROR, dial::OnError::kEventName, std::move(results))); |
+ EventRouter::Get(profile_)->BroadcastEvent(std::move(event)); |
} |
void DialAPI::ShutdownOnUIThread() {} |