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

Unified Diff: chrome/browser/local_discovery/privet_notifications.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/local_discovery/privet_notifications.cc
diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc
index ddecc245002ec73e6d409a39fca6ddc066660443..4913576062fe50e178d103851c6c13f8a4af3795 100644
--- a/chrome/browser/local_discovery/privet_notifications.cc
+++ b/chrome/browser/local_discovery/privet_notifications.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/local_discovery/privet_notifications.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
@@ -344,8 +346,8 @@ void PrivetNotificationService::StartLister() {
PrivetHTTPAsynchronousFactory::CreateInstance(
profile_->GetRequestContext()));
- privet_notifications_listener_.reset(new PrivetNotificationsListener(
- http_factory.Pass(), this));
+ privet_notifications_listener_.reset(
+ new PrivetNotificationsListener(std::move(http_factory), this));
}
PrivetNotificationDelegate::PrivetNotificationDelegate(

Powered by Google App Engine
This is Rietveld 408576698