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

Unified Diff: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc b/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
index 29309e36867ee458a6467a1b879c1bc7c531b325..5d76e25c495cf34ef4ebacd481364bb372f8f430 100644
--- a/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
+++ b/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
@@ -24,18 +24,18 @@ api::sync_file_system::SyncStateStatus SyncServiceStateEnumToExtensionEnum(
SyncEventObserver::SyncServiceState state) {
switch (state) {
case SyncEventObserver::SYNC_SERVICE_RUNNING:
- return api::sync_file_system::SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_RUNNING;
+ return api::sync_file_system::SYNC_STATE_STATUS_RUNNING;
case SyncEventObserver::SYNC_SERVICE_AUTHENTICATION_REQUIRED:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_AUTHENTICATION_REQUIRED;
+ SYNC_STATE_STATUS_AUTHENTICATION_REQUIRED;
case SyncEventObserver::SYNC_SERVICE_TEMPORARY_UNAVAILABLE:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_TEMPORARY_UNAVAILABLE;
+ SYNC_STATE_STATUS_TEMPORARY_UNAVAILABLE;
case SyncEventObserver::SYNC_SERVICE_DISABLED:
- return api::sync_file_system::SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_DISABLED;
+ return api::sync_file_system::SYNC_STATE_STATUS_DISABLED;
}
NOTREACHED();
- return api::sync_file_system::SYNC_FILE_SYSTEM_SYNC_STATE_STATUS_NONE;
+ return api::sync_file_system::SYNC_STATE_STATUS_NONE;
}
api::sync_file_system::SyncOperationResult SyncOperationResultToExtensionEnum(
@@ -43,22 +43,22 @@ api::sync_file_system::SyncOperationResult SyncOperationResultToExtensionEnum(
switch (operation_result) {
case fileapi::SYNC_OPERATION_NONE:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_NONE;
+ SYNC_OPERATION_RESULT_NONE;
case fileapi::SYNC_OPERATION_ADDED:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_ADDED;
+ SYNC_OPERATION_RESULT_ADDED;
case fileapi::SYNC_OPERATION_UPDATED:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_UPDATED;
+ SYNC_OPERATION_RESULT_UPDATED;
case fileapi::SYNC_OPERATION_DELETED:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_DELETED;
+ SYNC_OPERATION_RESULT_DELETED;
case fileapi::SYNC_OPERATION_CONFLICTED:
return api::sync_file_system::
- SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_CONFLICTED;
+ SYNC_OPERATION_RESULT_CONFLICTED;
}
NOTREACHED();
- return api::sync_file_system::SYNC_FILE_SYSTEM_SYNC_OPERATION_RESULT_NONE;
+ return api::sync_file_system::SYNC_OPERATION_RESULT_NONE;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698