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

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

Issue 185563011: [SyncFS] Change RemoteFileSyncService interface to accept per-app conflict resolution policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
index bb685a48737cac37258be202c708e04ccc63e566..e55a2d297a36754f338b5ce3fd373a35e0e6c470 100644
--- a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
+++ b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
@@ -353,7 +353,8 @@ bool SyncFileSystemSetConflictResolutionPolicyFunction::RunImpl() {
sync_file_system::SyncFileSystemService* service =
GetSyncFileSystemService(GetProfile());
DCHECK(service);
- SyncStatusCode status = service->SetConflictResolutionPolicy(policy);
+ SyncStatusCode status = service->SetConflictResolutionPolicy(
+ source_url().GetOrigin(), policy);
if (status != sync_file_system::SYNC_STATUS_OK) {
SetError(ErrorToString(status));
return false;
@@ -367,7 +368,7 @@ bool SyncFileSystemGetConflictResolutionPolicyFunction::RunImpl() {
DCHECK(service);
api::sync_file_system::ConflictResolutionPolicy policy =
ConflictResolutionPolicyToExtensionEnum(
- service->GetConflictResolutionPolicy());
+ service->GetConflictResolutionPolicy(source_url().GetOrigin()));
SetResult(new base::StringValue(
api::sync_file_system::ToString(policy)));
return true;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698