Index: chrome/browser/media_galleries/media_file_system_registry.cc |
diff --git a/chrome/browser/media_galleries/media_file_system_registry.cc b/chrome/browser/media_galleries/media_file_system_registry.cc |
index 5fa4aab64c8331db06686c5d77241fff21c6fa5f..b989c6f5c022013e2c830bcc06a495b3e5ece0f3 100644 |
--- a/chrome/browser/media_galleries/media_file_system_registry.cc |
+++ b/chrome/browser/media_galleries/media_file_system_registry.cc |
@@ -184,7 +184,7 @@ void RPHReferenceManager::RPHWebContentsObserver::WebContentsDestroyed() { |
void RPHReferenceManager::RPHWebContentsObserver::NavigationEntryCommitted( |
const content::LoadCommittedDetails& load_details) { |
- if (load_details.is_in_page) |
+ if (load_details.is_same_document) |
return; |
manager_->OnWebContentsDestroyedOrNavigated(web_contents()); |