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() {