Index: chrome/browser/media_galleries/media_galleries_preferences.cc |
diff --git a/chrome/browser/media_galleries/media_galleries_preferences.cc b/chrome/browser/media_galleries/media_galleries_preferences.cc |
index 013cad74784c287f25d63843b00f458450c8ea2f..7fe1a349353c3120ac8c2a09cb9eb678ffdcd191 100644 |
--- a/chrome/browser/media_galleries/media_galleries_preferences.cc |
+++ b/chrome/browser/media_galleries/media_galleries_preferences.cc |
@@ -825,7 +825,8 @@ MediaGalleryPrefId MediaGalleriesPreferences::AddGalleryInternal( |
bool update_scan_counts = |
new_type != MediaGalleryPrefInfo::kRemovedScan && |
new_type != MediaGalleryPrefInfo::kBlackListed && |
- (audio_count > 0 || image_count > 0 || video_count > 0); |
+ (audio_count > 0 || image_count > 0 || video_count > 0 || |
+ existing.audio_count || existing.image_count || existing.video_count); |
if (!update_gallery_name && !update_gallery_type && |
!update_gallery_metadata && !update_scan_counts) |