Chromium Code Reviews| 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 #include "chrome/browser/storage_monitor/storage_info.h" | 5 #include "chrome/browser/storage_monitor/storage_info.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace chrome { | 9 namespace chrome { |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 type == MTP_OR_PTP || | 118 type == MTP_OR_PTP || |
| 119 type == MAC_IMAGE_CAPTURE); | 119 type == MAC_IMAGE_CAPTURE); |
| 120 } | 120 } |
| 121 | 121 |
| 122 // static | 122 // static |
| 123 bool StorageInfo::IsMassStorageDevice(const std::string& device_id) { | 123 bool StorageInfo::IsMassStorageDevice(const std::string& device_id) { |
| 124 Type type; | 124 Type type; |
| 125 return CrackDeviceId(device_id, &type, NULL) && | 125 return CrackDeviceId(device_id, &type, NULL) && |
| 126 (type == REMOVABLE_MASS_STORAGE_WITH_DCIM || | 126 (type == REMOVABLE_MASS_STORAGE_WITH_DCIM || |
| 127 type == REMOVABLE_MASS_STORAGE_NO_DCIM || | 127 type == REMOVABLE_MASS_STORAGE_NO_DCIM || |
| 128 type == FIXED_MASS_STORAGE || | 128 type == FIXED_MASS_STORAGE); |
| 129 type == ITUNES || | |
|
vandebo (ex-Chrome)
2013/05/22 15:05:49
In one sense, iTunes and Picasa aren't mass storag
tommycli
2013/05/22 18:03:09
Done.
| |
| 130 type == PICASA); | |
| 131 } | 129 } |
| 132 | 130 |
| 133 } // namespace chrome | 131 } // namespace chrome |
| OLD | NEW |