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

Unified Diff: chrome/browser/extensions/api/location/location_manager.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/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(

Powered by Google App Engine
This is Rietveld 408576698