Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2318)

Unified Diff: chrome/browser/geolocation/geolocation_permission_context.cc

Issue 2612993002: Make geolocation API and X-Geo header access consistent (Closed)
Patch Set: Fix test / merge error Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/geolocation_permission_context.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context.cc b/chrome/browser/geolocation/geolocation_permission_context.cc
index 4e282fcb21301b9a880e59d521cb15498b29b8f4..38ab762bb4310d2391873e420a50fd1f735e9577 100644
--- a/chrome/browser/geolocation/geolocation_permission_context.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context.cc
@@ -13,10 +13,7 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "device/geolocation/geolocation_provider.h"
-
-#if defined(OS_ANDROID)
-#include "chrome/browser/android/search_geolocation/search_geolocation_disclosure_infobar_delegate.h"
-#endif
+#include "url/origin.h"
GeolocationPermissionContext::GeolocationPermissionContext(Profile* profile)
: PermissionContextBase(profile,
@@ -54,17 +51,6 @@ void GeolocationPermissionContext::DecidePermission(
return;
}
-#if defined(OS_ANDROID)
- // If the search geolocation disclosure is open, don't pop up a permission
- // request. Treat this as a dismissal instead.
- if (SearchGeolocationDisclosureInfoBarDelegate::
- IsSearchGeolocationDisclosureOpen(web_contents)) {
- NotifyPermissionSet(id, requesting_origin, embedding_origin, callback,
- false /* persist */, CONTENT_SETTING_DEFAULT);
- return;
- }
-#endif
-
PermissionContextBase::DecidePermission(web_contents,
id,
requesting_origin,

Powered by Google App Engine
This is Rietveld 408576698