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

Unified Diff: chrome/browser/views/options/cookies_view.cc

Issue 600104: Actually delete databases in CookiesTreeModel. (Closed)
Patch Set: fixed comments Created 10 years, 10 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
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | webkit/database/database_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/options/cookies_view.cc
diff --git a/chrome/browser/views/options/cookies_view.cc b/chrome/browser/views/options/cookies_view.cc
index e952d51b96159d6269e61082ae32dc0092f35951..51833b289397da4fe4d3dbbbbb43434e219f1cee 100644
--- a/chrome/browser/views/options/cookies_view.cc
+++ b/chrome/browser/views/options/cookies_view.cc
@@ -348,11 +348,7 @@ void CookiesView::UpdateRemoveButtonsState() {
}
void CookiesView::UpdateVisibleDetailedInfo(views::View* view) {
- view->SetVisible(true);
- if (view != cookie_info_view_)
- cookie_info_view_->SetVisible(false);
- if (view != database_info_view_)
- database_info_view_->SetVisible(false);
- if (view != local_storage_info_view_)
- local_storage_info_view_->SetVisible(false);
+ cookie_info_view_->SetVisible(view == cookie_info_view_);
+ database_info_view_->SetVisible(view == database_info_view_);
+ local_storage_info_view_->SetVisible(view == local_storage_info_view_);
}
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | webkit/database/database_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698