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

Unified Diff: chrome/browser/content_setting_bubble_model.cc

Issue 2370001: Store blocked cookies in the tab contents. (Closed)
Patch Set: updates Created 10 years, 6 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/content_setting_bubble_model.cc
diff --git a/chrome/browser/content_setting_bubble_model.cc b/chrome/browser/content_setting_bubble_model.cc
index d918c35b2ade6f920d5739d7c4d9f56c7017f4e9..f396cded324377abfb66562e99697dec8be825ad 100644
--- a/chrome/browser/content_setting_bubble_model.cc
+++ b/chrome/browser/content_setting_bubble_model.cc
@@ -199,8 +199,10 @@ class ContentSettingDomainListBubbleModel
}
}
void SetDomainsAndClearLink() {
+ TabSpecificContentSettings* content_settings =
+ tab_contents()->GetTabSpecificContentSettings();
const GeolocationSettingsState& settings =
- tab_contents()->geolocation_settings_state();
+ content_settings->geolocation_settings_state();
GeolocationSettingsState::FormattedHostsPerState formatted_hosts_per_state;
unsigned int tab_state_flags = 0;
settings.GetDetailedInfo(&formatted_hosts_per_state, &tab_state_flags);
@@ -233,8 +235,10 @@ class ContentSettingDomainListBubbleModel
// Reset this embedder's entry to default for each of the requesting
// origins currently on the page.
const GURL& embedder_url = tab_contents()->GetURL();
+ TabSpecificContentSettings* content_settings =
+ tab_contents()->GetTabSpecificContentSettings();
const GeolocationSettingsState::StateMap& state_map =
- tab_contents()->geolocation_settings_state().state_map();
+ content_settings->geolocation_settings_state().state_map();
GeolocationContentSettingsMap* settings_map =
profile()->GetGeolocationContentSettingsMap();
for (GeolocationSettingsState::StateMap::const_iterator it =

Powered by Google App Engine
This is Rietveld 408576698