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

Unified Diff: chrome/browser/media_galleries/media_galleries_preferences.cc

Issue 167863002: Update media galleries scan results, even when zero. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 006fee9410088ea74cb195a5892b0868a3e82893..fbc809db8e7f35ee2965c5619cc34dad5313bc65 100644
--- a/chrome/browser/media_galleries/media_galleries_preferences.cc
+++ b/chrome/browser/media_galleries/media_galleries_preferences.cc
@@ -823,7 +823,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)

Powered by Google App Engine
This is Rietveld 408576698