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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/options/cookies_view.h" 5 #include "chrome/browser/views/options/cookies_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/gfx/color_utils.h" 10 #include "app/gfx/color_utils.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 341 }
342 342
343 void CookiesView::UpdateRemoveButtonsState() { 343 void CookiesView::UpdateRemoveButtonsState() {
344 remove_button_->SetEnabled(cookies_tree_model_->GetRoot()-> 344 remove_button_->SetEnabled(cookies_tree_model_->GetRoot()->
345 GetTotalNodeCount() > 1); 345 GetTotalNodeCount() > 1);
346 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()-> 346 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()->
347 GetTotalNodeCount() > 1); 347 GetTotalNodeCount() > 1);
348 } 348 }
349 349
350 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { 350 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) {
351 view->SetVisible(true); 351 cookie_info_view_->SetVisible(view == cookie_info_view_);
352 if (view != cookie_info_view_) 352 database_info_view_->SetVisible(view == database_info_view_);
353 cookie_info_view_->SetVisible(false); 353 local_storage_info_view_->SetVisible(view == local_storage_info_view_);
354 if (view != database_info_view_)
355 database_info_view_->SetVisible(false);
356 if (view != local_storage_info_view_)
357 local_storage_info_view_->SetVisible(false);
358 } 354 }
OLDNEW
« 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