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

Unified Diff: content/browser/geolocation/location_provider_android.cc

Issue 2129313002: Geolocation cleanup: corrects uses of content::AccessTokenStore* and net::URLRequestContextGetter* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed StartTestStepFromClientThread() Created 4 years, 5 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: content/browser/geolocation/location_provider_android.cc
diff --git a/content/browser/geolocation/location_provider_android.cc b/content/browser/geolocation/location_provider_android.cc
index 20e672f5e3df37ab521660e298a265222b86e463..16db9db794aaf52591d0e21cc62e34e661fad2c2 100644
--- a/content/browser/geolocation/location_provider_android.cc
+++ b/content/browser/geolocation/location_provider_android.cc
@@ -4,6 +4,7 @@
#include "content/browser/geolocation/location_provider_android.h"
+#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "content/browser/geolocation/location_api_adapter_android.h"
#include "content/public/common/geoposition.h"
@@ -44,8 +45,9 @@ void LocationProviderAndroid::OnPermissionGranted() {
// Nothing to do here.
}
-LocationProvider* NewSystemLocationProvider() {
- return new LocationProviderAndroid;
+// static
+std::unique_ptr<LocationProvider> NewSystemLocationProvider() {
+ return base::WrapUnique(new LocationProviderAndroid);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698