From 16a0185ab577a0b421e45b57824cff2916ac5e35 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 27 Aug 2015 22:50:40 +0800 Subject: [PATCH] Opt into location services --- atom/browser/atom_access_token_store.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/atom_access_token_store.cc b/atom/browser/atom_access_token_store.cc index 86ce1c215936..3d254f060188 100644 --- a/atom/browser/atom_access_token_store.cc +++ b/atom/browser/atom_access_token_store.cc @@ -9,6 +9,7 @@ #include "atom/browser/atom_browser_context.h" #include "atom/browser/atom_browser_main_parts.h" #include "atom/common/google_api_key.h" +#include "content/public/browser/geolocation_provider.h" namespace atom { @@ -24,6 +25,7 @@ const char* kGeolocationProviderUrl = } // namespace AtomAccessTokenStore::AtomAccessTokenStore() { + content::GeolocationProvider::GetInstance()->UserDidOptIntoLocationServices(); } AtomAccessTokenStore::~AtomAccessTokenStore() {