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

Unified Diff: chrome/browser/ui/views/collected_cookies_views.cc

Issue 10709006: Show apps protecting local data in chrome://settings/cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 5 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/ui/views/collected_cookies_views.cc
diff --git a/chrome/browser/ui/views/collected_cookies_views.cc b/chrome/browser/ui/views/collected_cookies_views.cc
index 7b6d39055360697b1bc26fc042702528d5456b1d..6ef863bb5537942d1be69e036de17c88014b0a00 100644
--- a/chrome/browser/ui/views/collected_cookies_views.cc
+++ b/chrome/browser/ui/views/collected_cookies_views.cc
@@ -342,6 +342,7 @@ views::View* CollectedCookiesViews::CreateAllowedPane() {
allowed_lsos.file_systems()->Clone(),
NULL,
allowed_lsos.server_bound_certs()->Clone(),
+ NULL,
true));
allowed_cookies_tree_ = new views::TreeView();
allowed_cookies_tree_->SetModel(allowed_cookies_tree_model_.get());
@@ -410,6 +411,7 @@ views::View* CollectedCookiesViews::CreateBlockedPane() {
blocked_lsos.file_systems()->Clone(),
NULL,
blocked_lsos.server_bound_certs()->Clone(),
+ NULL,
true));
blocked_cookies_tree_ = new views::TreeView();
blocked_cookies_tree_->SetModel(blocked_cookies_tree_model_.get());
@@ -468,8 +470,8 @@ void CollectedCookiesViews::EnableControls() {
if (node) {
CookieTreeNode* cookie_node = static_cast<CookieTreeNode*>(node);
if (cookie_node->GetDetailedInfo().node_type ==
- CookieTreeNode::DetailedInfo::TYPE_ORIGIN) {
- enable_allowed_buttons = static_cast<CookieTreeOriginNode*>(
+ CookieTreeNode::DetailedInfo::TYPE_HOST) {
+ enable_allowed_buttons = static_cast<CookieTreeHostNode*>(
cookie_node)->CanCreateContentException();
}
}
@@ -480,8 +482,8 @@ void CollectedCookiesViews::EnableControls() {
if (node) {
CookieTreeNode* cookie_node = static_cast<CookieTreeNode*>(node);
if (cookie_node->GetDetailedInfo().node_type ==
- CookieTreeNode::DetailedInfo::TYPE_ORIGIN) {
- enable_blocked_buttons = static_cast<CookieTreeOriginNode*>(
+ CookieTreeNode::DetailedInfo::TYPE_HOST) {
+ enable_blocked_buttons = static_cast<CookieTreeHostNode*>(
cookie_node)->CanCreateContentException();
}
}
@@ -512,12 +514,12 @@ void CollectedCookiesViews::ShowCookieInfo() {
void CollectedCookiesViews::AddContentException(views::TreeView* tree_view,
ContentSetting setting) {
- CookieTreeOriginNode* origin_node =
- static_cast<CookieTreeOriginNode*>(tree_view->GetSelectedNode());
+ CookieTreeHostNode* host_node =
+ static_cast<CookieTreeHostNode*>(tree_view->GetSelectedNode());
Profile* profile = tab_contents_->profile();
- origin_node->CreateContentException(
+ host_node->CreateContentException(
CookieSettings::Factory::GetForProfile(profile), setting);
- infobar_->UpdateVisibility(true, setting, origin_node->GetTitle());
+ infobar_->UpdateVisibility(true, setting, host_node->GetTitle());
status_changed_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698