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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 3305004: Fix geolocation icon behaviour on navigation (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index ac2fe319dcbdcca3e7e20026ce4e98676655073e..f081bc8b5c1ca3291d51f3c63010b06eb60a56db 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -2103,8 +2103,10 @@ void TabContents::DidStartProvisionalLoadForFrame(
NotificationType::FRAME_PROVISIONAL_LOAD_START,
Source<NavigationController>(&controller_),
Details<ProvisionalLoadDetails>(&details));
- if (is_main_frame)
+ if (is_main_frame) {
content_settings_delegate_->ClearCookieSpecificContentSettings();
+ content_settings_delegate_->ClearGeolocationContentSettings();
+ }
}
void TabContents::DidStartReceivingResourceResponse(
« no previous file with comments | « chrome/browser/geolocation/geolocation_settings_state.cc ('k') | chrome/browser/tab_contents/tab_specific_content_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698