| 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..9ba1a9555b4c245f94799d681a69918468181674 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::GetForgetMenuCommand() const {
|
| + return l10n_util::GetStringUTF16(IDS_MEDIA_GALLERIES_DIALOG_FORGET);
|
| +}
|
| +
|
| // 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
|
|
|