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

Unified Diff: chrome/browser/extensions/api/dial/dial_api.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: 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() {}

Powered by Google App Engine
This is Rietveld 408576698