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

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

Issue 13548003: Prevent leaking geolocation permission from Incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a check to the test Created 7 years, 9 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/chrome_geolocation_permission_context_factory.cc
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
index 3c61d15ac04628a0f8322fcd9f3a2532442d941e..407a3764d036b85ee0ae7f705d2215d18f94bc98 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
@@ -82,5 +82,10 @@ void ChromeGeolocationPermissionContextFactory::RegisterUserPrefs(
bool ChromeGeolocationPermissionContextFactory::
ServiceRedirectedInIncognito() const {
+ return false;
+}
+
+bool ChromeGeolocationPermissionContextFactory::
+ServiceHasOwnInstanceInIncognito() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698