Index: chrome/browser/extensions/api/location/location_manager.cc |
diff --git a/chrome/browser/extensions/api/location/location_manager.cc b/chrome/browser/extensions/api/location/location_manager.cc |
index 7b65616bdcfd8be1df4cc9f3ddd04a8f25951322..87bd68f822c36729c21f89862147c2cd1cd33a09 100644 |
--- a/chrome/browser/extensions/api/location/location_manager.cc |
+++ b/chrome/browser/extensions/api/location/location_manager.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/extensions/api/location/location_manager.h" |
#include <math.h> |
+#include <utility> |
#include <vector> |
#include "base/bind.h" |
@@ -336,10 +337,11 @@ void LocationManager::SendLocationUpdate( |
event_name = location::OnLocationError::kEventName; |
} |
- scoped_ptr<Event> event(new Event(histogram_value, event_name, args.Pass())); |
+ scoped_ptr<Event> event( |
+ new Event(histogram_value, event_name, std::move(args))); |
EventRouter::Get(browser_context_) |
- ->DispatchEventToExtension(extension_id, event.Pass()); |
+ ->DispatchEventToExtension(extension_id, std::move(event)); |
} |
void LocationManager::OnExtensionLoaded( |