Merge pull request #2613 from atom/fix-geolocation
Opt into location services
This commit is contained in:
commit
195be931a4
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "atom/browser/atom_browser_context.h"
|
#include "atom/browser/atom_browser_context.h"
|
||||||
#include "atom/browser/atom_browser_main_parts.h"
|
#include "atom/browser/atom_browser_main_parts.h"
|
||||||
#include "atom/common/google_api_key.h"
|
#include "atom/common/google_api_key.h"
|
||||||
|
#include "content/public/browser/geolocation_provider.h"
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ const char* kGeolocationProviderUrl =
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
AtomAccessTokenStore::AtomAccessTokenStore() {
|
AtomAccessTokenStore::AtomAccessTokenStore() {
|
||||||
|
content::GeolocationProvider::GetInstance()->UserDidOptIntoLocationServices();
|
||||||
}
|
}
|
||||||
|
|
||||||
AtomAccessTokenStore::~AtomAccessTokenStore() {
|
AtomAccessTokenStore::~AtomAccessTokenStore() {
|
||||||
|
|
Loading…
Reference in a new issue