Index: chrome/browser/extensions/api/hotword_private/hotword_private_api.cc |
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc |
index db251fa627c0dc155ab772c73b84972f1c85c679..a17367f1f366adf1a9e30dd06478fb7b5fb7d8a2 100644 |
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc |
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h" |
#include <string> |
+#include <utility> |
#include "base/lazy_instance.h" |
#include "base/prefs/pref_service.h" |
@@ -142,8 +143,9 @@ void HotwordPrivateEventService::SignalEvent( |
if (!router || !router->HasEventListener(event_name)) |
return; |
- scoped_ptr<Event> event(new Event(histogram_value, event_name, args.Pass())); |
- router->BroadcastEvent(event.Pass()); |
+ scoped_ptr<Event> event( |
+ new Event(histogram_value, event_name, std::move(args))); |
+ router->BroadcastEvent(std::move(event)); |
} |
bool HotwordPrivateSetEnabledFunction::RunSync() { |