Index: chrome/browser/media_galleries/media_galleries_dialog_controller.cc |
diff --git a/chrome/browser/media_galleries/media_galleries_dialog_controller.cc b/chrome/browser/media_galleries/media_galleries_dialog_controller.cc |
index e4202eb976fd7a6f45bfd004678d2f049835b53a..556462d9159b80c07e69b7a6c9341f7238e9e033 100644 |
--- a/chrome/browser/media_galleries/media_galleries_dialog_controller.cc |
+++ b/chrome/browser/media_galleries/media_galleries_dialog_controller.cc |
@@ -116,6 +116,10 @@ string16 MediaGalleriesDialogController::GetUnattachedLocationsHeader() const { |
return l10n_util::GetStringUTF16(IDS_MEDIA_GALLERIES_UNATTACHED_LOCATIONS); |
} |
+string16 MediaGalleriesDialogController::GetDeleteMenuCommand() const { |
+ return l10n_util::GetStringUTF16(IDS_MEDIA_GALLERIES_DIALOG_DELETE); |
+} |
+ |
// TODO(gbillock): Call this something a bit more connected to the |
// messaging in the dialog. |
bool MediaGalleriesDialogController::HasPermittedGalleries() const { |
@@ -218,6 +222,12 @@ void MediaGalleriesDialogController::DidToggleNewGallery( |
} |
} |
+void MediaGalleriesDialogController::DidForgetGallery( |
+ MediaGalleryPrefId pref_id) { |
+ DCHECK(preferences_); |
+ preferences_->ForgetGalleryById(pref_id); |
+} |
+ |
void MediaGalleriesDialogController::DialogFinished(bool accepted) { |
// The dialog has finished, so there is no need to watch for more updates |
// from |preferences_|. Do this here and not in the dtor since this is the |