OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // MediaFileSystemRegistry implementation. | 5 // MediaFileSystemRegistry implementation. |
6 | 6 |
7 #include "chrome/browser/media_gallery/media_file_system_registry.h" | 7 #include "chrome/browser/media_gallery/media_file_system_registry.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
156 | 156 |
157 IsolatedContext* isolated_context = IsolatedContext::GetInstance(); | 157 IsolatedContext* isolated_context = IsolatedContext::GetInstance(); |
158 for (ChildIdToMediaFSMap::iterator child_it = media_fs_map_.begin(); | 158 for (ChildIdToMediaFSMap::iterator child_it = media_fs_map_.begin(); |
159 child_it != media_fs_map_.end(); | 159 child_it != media_fs_map_.end(); |
160 ++child_it) { | 160 ++child_it) { |
161 MediaPathToFSIDMap& child_map = child_it->second; | 161 MediaPathToFSIDMap& child_map = child_it->second; |
162 MediaPathToFSIDMap::iterator media_path_it = child_map.find(path); | 162 MediaPathToFSIDMap::iterator media_path_it = child_map.find(path); |
163 if (media_path_it == child_map.end()) | 163 if (media_path_it == child_map.end()) |
164 continue; | 164 continue; |
165 isolated_context->RevokeIsolatedFileSystem(media_path_it->second); | 165 isolated_context->RemoveReference(media_path_it->second); |
166 child_map.erase(media_path_it); | 166 child_map.erase(media_path_it); |
167 } | 167 } |
168 } | 168 } |
169 | 169 |
170 } // namespace chrome | 170 } // namespace chrome |
OLD | NEW |