Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: extensions/browser/api/system_storage/system_storage_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/system_storage/system_storage_api.cc
diff --git a/extensions/browser/api/system_storage/system_storage_api.cc b/extensions/browser/api/system_storage/system_storage_api.cc
index 778498ed47979880e2ec01225077ca7c721d901b..de460183ea3af7b2a2c459e593c9e5b54c55b873 100644
--- a/extensions/browser/api/system_storage/system_storage_api.cc
+++ b/extensions/browser/api/system_storage/system_storage_api.cc
@@ -8,9 +8,9 @@ using storage_monitor::StorageMonitor;
namespace extensions {
-using core_api::system_storage::StorageUnitInfo;
-namespace EjectDevice = core_api::system_storage::EjectDevice;
-namespace GetAvailableCapacity = core_api::system_storage::GetAvailableCapacity;
+using api::system_storage::StorageUnitInfo;
+namespace EjectDevice = api::system_storage::EjectDevice;
+namespace GetAvailableCapacity = api::system_storage::GetAvailableCapacity;
SystemStorageGetInfoFunction::SystemStorageGetInfoFunction() {
}
@@ -26,7 +26,7 @@ bool SystemStorageGetInfoFunction::RunAsync() {
void SystemStorageGetInfoFunction::OnGetStorageInfoCompleted(bool success) {
if (success) {
- results_ = core_api::system_storage::GetInfo::Results::Create(
+ results_ = api::system_storage::GetInfo::Results::Create(
StorageInfoProvider::Get()->storage_unit_info_list());
} else {
SetError("Error occurred when querying storage information.");
@@ -71,24 +71,23 @@ void SystemStorageEjectDeviceFunction::OnStorageMonitorInit(
void SystemStorageEjectDeviceFunction::HandleResponse(
StorageMonitor::EjectStatus status) {
- core_api::system_storage::EjectDeviceResultCode result =
- core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE;
+ api::system_storage::EjectDeviceResultCode result =
+ api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE;
switch (status) {
case StorageMonitor::EJECT_OK:
- result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_SUCCESS;
+ result = api::system_storage::EJECT_DEVICE_RESULT_CODE_SUCCESS;
break;
case StorageMonitor::EJECT_IN_USE:
- result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE;
+ result = api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE;
break;
case StorageMonitor::EJECT_NO_SUCH_DEVICE:
- result =
- core_api::system_storage::EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE;
+ result = api::system_storage::EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE;
break;
case StorageMonitor::EJECT_FAILURE:
- result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE;
+ result = api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE;
}
- SetResult(new base::StringValue(core_api::system_storage::ToString(result)));
+ SetResult(new base::StringValue(api::system_storage::ToString(result)));
SendResponse(true);
}
@@ -133,7 +132,7 @@ void SystemStorageGetAvailableCapacityFunction::OnQueryCompleted(
double available_capacity) {
bool success = available_capacity >= 0;
if (success) {
- core_api::system_storage::StorageAvailableCapacityInfo result;
+ api::system_storage::StorageAvailableCapacityInfo result;
result.id = transient_id;
result.available_capacity = available_capacity;
SetResult(result.ToValue().release());
« no previous file with comments | « extensions/browser/api/system_storage/storage_info_provider.cc ('k') | extensions/browser/api/test/test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698