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

Unified Diff: chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc

Issue 12095074: Media Galleries: Keep media gallery permission dialogs in sync with the gallery (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix nit Created 7 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/ui/views/extensions/media_galleries_dialog_views.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc
===================================================================
--- chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc (revision 181443)
+++ chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc (working copy)
@@ -103,6 +103,19 @@
GetWidget()->SetSize(GetWidget()->non_client_view()->GetPreferredSize());
}
+void MediaGalleriesDialogViews::ForgetGallery(
+ const MediaGalleryPrefInfo* gallery) {
+ CheckboxMap::iterator iter = checkbox_map_.find(gallery);
+ if (iter == checkbox_map_.end())
+ return;
+
+ views::Checkbox* checkbox = iter->second;
+ checkbox_container_->RemoveChildView(checkbox);
+ delete checkbox;
+ checkbox_map_.erase(iter);
+ GetWidget()->SetSize(GetWidget()->non_client_view()->GetPreferredSize());
+}
+
bool MediaGalleriesDialogViews::AddOrUpdateGallery(
const MediaGalleryPrefInfo* gallery,
bool permitted) {
« no previous file with comments | « chrome/browser/ui/views/extensions/media_galleries_dialog_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698