OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/storage_monitor/media_storage_util.h" | 5 #include "components/storage_monitor/media_storage_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "components/storage_monitor/removable_device_constants.h" | 15 #include "components/storage_monitor/removable_device_constants.h" |
16 #include "components/storage_monitor/storage_monitor.h" | 16 #include "components/storage_monitor/storage_monitor.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace storage_monitor { | 21 namespace storage_monitor { |
22 | 22 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 StorageMonitor::GetInstance()->GetAllAvailableStorages(); | 241 StorageMonitor::GetInstance()->GetAllAvailableStorages(); |
242 for (StorageInfoList::const_iterator it = devices.begin(); | 242 for (StorageInfoList::const_iterator it = devices.begin(); |
243 it != devices.end(); ++it) { | 243 it != devices.end(); ++it) { |
244 if (StorageInfo::IsRemovableDevice(id) && it->device_id() == id) | 244 if (StorageInfo::IsRemovableDevice(id) && it->device_id() == id) |
245 return true; | 245 return true; |
246 } | 246 } |
247 return false; | 247 return false; |
248 } | 248 } |
249 | 249 |
250 } // namespace storage_monitor | 250 } // namespace storage_monitor |
OLD | NEW |