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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc

Issue 1556783002: Convert Pass()→std::move() for CrOS extension code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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: chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc b/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc
index 143efcd1e371d520cd97ccca9c552ddd40b9ae3e..c7ad6dd40439f3cbf1ea568a280faf49fb1e88f3 100644
--- a/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc
@@ -5,6 +5,7 @@
#include "extensions/browser/api/messaging/native_message_host.h"
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -106,8 +107,8 @@ scoped_ptr<NativeMessageHost> CreateIt2MeHost() {
content::BrowserThread::GetMessageLoopProxyForThread(
content::BrowserThread::FILE));
scoped_ptr<NativeMessageHost> host(new remoting::It2MeNativeMessagingHost(
- context.Pass(), host_factory.Pass()));
- return host.Pass();
+ std::move(context), std::move(host_factory)));
+ return host;
}
// If you modify the list of allowed_origins, don't forget to update

Powered by Google App Engine
This is Rietveld 408576698