Index: extensions/browser/api/system_storage/system_storage_api.cc |
diff --git a/chrome/browser/extensions/api/system_storage/system_storage_api.cc b/extensions/browser/api/system_storage/system_storage_api.cc |
similarity index 82% |
rename from chrome/browser/extensions/api/system_storage/system_storage_api.cc |
rename to extensions/browser/api/system_storage/system_storage_api.cc |
index 3b8407d4eee11e873b60a1d8f5776410cc2b77bb..60cba80a5f4ae903efe566f94e40b01defa84e3a 100644 |
--- a/chrome/browser/extensions/api/system_storage/system_storage_api.cc |
+++ b/extensions/browser/api/system_storage/system_storage_api.cc |
@@ -2,15 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/extensions/api/system_storage/system_storage_api.h" |
+#include "extensions/browser/api/system_storage/system_storage_api.h" |
using storage_monitor::StorageMonitor; |
namespace extensions { |
-using api::system_storage::StorageUnitInfo; |
-namespace EjectDevice = api::system_storage::EjectDevice; |
-namespace GetAvailableCapacity = api::system_storage::GetAvailableCapacity; |
+using core_api::system_storage::StorageUnitInfo; |
+namespace EjectDevice = core_api::system_storage::EjectDevice; |
+namespace GetAvailableCapacity = core_api::system_storage::GetAvailableCapacity; |
SystemStorageGetInfoFunction::SystemStorageGetInfoFunction() { |
} |
@@ -27,7 +27,7 @@ bool SystemStorageGetInfoFunction::RunAsync() { |
void SystemStorageGetInfoFunction::OnGetStorageInfoCompleted(bool success) { |
if (success) { |
- results_ = api::system_storage::GetInfo::Results::Create( |
+ results_ = core_api::system_storage::GetInfo::Results::Create( |
StorageInfoProvider::Get()->storage_unit_info_list()); |
} else { |
SetError("Error occurred when querying storage information."); |
@@ -73,25 +73,25 @@ void SystemStorageEjectDeviceFunction::OnStorageMonitorInit( |
void SystemStorageEjectDeviceFunction::HandleResponse( |
StorageMonitor::EjectStatus status) { |
- api::system_storage:: EjectDeviceResultCode result = |
- api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; |
+ core_api::system_storage:: EjectDeviceResultCode result = |
+ core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; |
switch (status) { |
case StorageMonitor::EJECT_OK: |
- result = api::system_storage::EJECT_DEVICE_RESULT_CODE_SUCCESS; |
+ result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_SUCCESS; |
break; |
case StorageMonitor::EJECT_IN_USE: |
- result = api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE; |
+ result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE; |
break; |
case StorageMonitor::EJECT_NO_SUCH_DEVICE: |
- result = api::system_storage:: |
+ result = core_api::system_storage:: |
EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE; |
break; |
case StorageMonitor::EJECT_FAILURE: |
- result = api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; |
+ result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; |
} |
SetResult(new base::StringValue( |
- api::system_storage::ToString(result))); |
+ core_api::system_storage::ToString(result))); |
SendResponse(true); |
} |
@@ -134,7 +134,7 @@ void SystemStorageGetAvailableCapacityFunction::OnQueryCompleted( |
const std::string& transient_id, double available_capacity) { |
bool success = available_capacity >= 0; |
if (success) { |
- api::system_storage::StorageAvailableCapacityInfo result; |
+ core_api::system_storage::StorageAvailableCapacityInfo result; |
result.id = transient_id; |
result.available_capacity = available_capacity; |
SetResult(result.ToValue().release()); |