]> khamidou — GitHub mirrors - electron.git/commitdiff
Opt into location services
authorCheng Zhao <zcbenz@gmail.com>
Thu, 27 Aug 2015 14:50:40 +0000 (22:50 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 27 Aug 2015 14:50:40 +0000 (22:50 +0800)
atom/browser/atom_access_token_store.cc

index 86ce1c2159366809b278c5854899e54fea81c0d6..3d254f060188c36eb6d056d35a5a40314e6348fd 100644 (file)
@@ -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() {