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

Unified Diff: content/browser/geolocation/network_location_request.h

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/network_location_request.h
diff --git a/content/browser/geolocation/network_location_request.h b/content/browser/geolocation/network_location_request.h
index e091320b8a09ce131dc2455f5d59290a76945a7a..58b892e2d2a14f91a7e6d339f0ddbe9b3f32da7f 100644
--- a/content/browser/geolocation/network_location_request.h
+++ b/content/browser/geolocation/network_location_request.h
@@ -41,9 +41,10 @@ class NetworkLocationRequest : private net::URLFetcherDelegate {
LocationResponseCallback;
// |url| is the server address to which the request wil be sent.
- NetworkLocationRequest(net::URLRequestContextGetter* context,
- const GURL& url,
- LocationResponseCallback callback);
+ NetworkLocationRequest(
+ const scoped_refptr<net::URLRequestContextGetter>& context,
+ const GURL& url,
+ LocationResponseCallback callback);
~NetworkLocationRequest() override;
// Makes a new request. Returns true if the new request was successfully
@@ -59,8 +60,8 @@ class NetworkLocationRequest : private net::URLFetcherDelegate {
// net::URLFetcherDelegate
void OnURLFetchComplete(const net::URLFetcher* source) override;
- scoped_refptr<net::URLRequestContextGetter> url_context_;
- LocationResponseCallback location_response_callback_;
+ const scoped_refptr<net::URLRequestContextGetter> url_context_;
+ const LocationResponseCallback location_response_callback_;
const GURL url_;
std::unique_ptr<net::URLFetcher> url_fetcher_;

Powered by Google App Engine
This is Rietveld 408576698