OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/geolocation/geolocation_permission_context.h" | 5 #include "chrome/browser/geolocation/geolocation_permission_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
9 #include "chrome/browser/permissions/permission_request_id.h" | 9 #include "chrome/browser/permissions/permission_request_id.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 content_settings->OnGeolocationPermissionSet( | 82 content_settings->OnGeolocationPermissionSet( |
83 requesting_frame.GetOrigin(), allowed); | 83 requesting_frame.GetOrigin(), allowed); |
84 | 84 |
85 if (allowed) { | 85 if (allowed) { |
86 content::GeolocationProvider::GetInstance() | 86 content::GeolocationProvider::GetInstance() |
87 ->UserDidOptIntoLocationServices(); | 87 ->UserDidOptIntoLocationServices(); |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 bool GeolocationPermissionContext::IsRestrictedToSecureOrigins() const { | 91 bool GeolocationPermissionContext::IsRestrictedToSecureOrigins() const { |
92 return true; | 92 return false; |
93 } | 93 } |
OLD | NEW |