| 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/extensions/api/system_storage/system_storage_api.h" | 5 #include "chrome/browser/extensions/api/system_storage/system_storage_api.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 using api::system_storage::StorageUnitInfo; | 9 using api::system_storage::StorageUnitInfo; |
| 10 namespace EjectDevice = api::system_storage::EjectDevice; | 10 namespace EjectDevice = api::system_storage::EjectDevice; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 result = api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE; | 80 result = api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE; |
| 81 break; | 81 break; |
| 82 case chrome::StorageMonitor::EJECT_NO_SUCH_DEVICE: | 82 case chrome::StorageMonitor::EJECT_NO_SUCH_DEVICE: |
| 83 result = api::system_storage:: | 83 result = api::system_storage:: |
| 84 EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE; | 84 EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE; |
| 85 break; | 85 break; |
| 86 case chrome::StorageMonitor::EJECT_FAILURE: | 86 case chrome::StorageMonitor::EJECT_FAILURE: |
| 87 result = api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; | 87 result = api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; |
| 88 } | 88 } |
| 89 | 89 |
| 90 SetResult(base::StringValue::CreateStringValue( | 90 SetResult(new base::StringValue( |
| 91 api::system_storage::ToString(result))); | 91 api::system_storage::ToString(result))); |
| 92 SendResponse(true); | 92 SendResponse(true); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace extensions | 95 } // namespace extensions |
| OLD | NEW |