summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/geolocation_permission_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/geolocation/geolocation_permission_context.cc')
-rw-r--r--chrome/browser/geolocation/geolocation_permission_context.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/geolocation/geolocation_permission_context.cc b/chrome/browser/geolocation/geolocation_permission_context.cc
index e812e00..5ff17c0 100644
--- a/chrome/browser/geolocation/geolocation_permission_context.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context.cc
@@ -176,9 +176,7 @@ GeolocationArbitrator* GeolocationPermissionContext::StartUpdatingRequested(
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
// TODO(joth): Use requesting_frame parameter to short-circuit the latched
// permission-denied case, and so avoid starting up location arbitrator.
- if (!location_arbitrator_)
- location_arbitrator_ = GeolocationArbitrator::GetInstance();
- return location_arbitrator_;
+ return GeolocationArbitrator::GetInstance();
}
void GeolocationPermissionContext::RequestPermissionFromUI(