OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_util.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 volume_metadata->volume_type = | 152 volume_metadata->volume_type = |
153 file_browser_private::VOLUME_TYPE_REMOVABLE; | 153 file_browser_private::VOLUME_TYPE_REMOVABLE; |
154 break; | 154 break; |
155 case VOLUME_TYPE_MOUNTED_ARCHIVE_FILE: | 155 case VOLUME_TYPE_MOUNTED_ARCHIVE_FILE: |
156 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_ARCHIVE; | 156 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_ARCHIVE; |
157 break; | 157 break; |
158 case VOLUME_TYPE_CLOUD_DEVICE: | 158 case VOLUME_TYPE_CLOUD_DEVICE: |
159 volume_metadata->volume_type = | 159 volume_metadata->volume_type = |
160 file_browser_private::VOLUME_TYPE_CLOUD_DEVICE; | 160 file_browser_private::VOLUME_TYPE_CLOUD_DEVICE; |
161 break; | 161 break; |
| 162 case VOLUME_TYPE_PROVIDED: |
| 163 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_PROVIDED; |
| 164 break; |
162 case VOLUME_TYPE_TESTING: | 165 case VOLUME_TYPE_TESTING: |
163 volume_metadata->volume_type = | 166 volume_metadata->volume_type = |
164 file_browser_private::VOLUME_TYPE_TESTING; | 167 file_browser_private::VOLUME_TYPE_TESTING; |
165 break; | 168 break; |
166 } | 169 } |
167 | 170 |
168 // Fill device_type iff the volume is removable partition. | 171 // Fill device_type iff the volume is removable partition. |
169 if (volume_info.type == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) { | 172 if (volume_info.type == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) { |
170 switch (volume_info.device_type) { | 173 switch (volume_info.device_type) { |
171 case chromeos::DEVICE_TYPE_UNKNOWN: | 174 case chromeos::DEVICE_TYPE_UNKNOWN: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 277 |
275 drive::EventLogger* GetLogger(Profile* profile) { | 278 drive::EventLogger* GetLogger(Profile* profile) { |
276 drive::DriveIntegrationService* service = | 279 drive::DriveIntegrationService* service = |
277 drive::DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates( | 280 drive::DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates( |
278 profile); | 281 profile); |
279 return service ? service->event_logger() : NULL; | 282 return service ? service->event_logger() : NULL; |
280 } | 283 } |
281 | 284 |
282 } // namespace util | 285 } // namespace util |
283 } // namespace file_manager | 286 } // namespace file_manager |
OLD | NEW |