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

Unified Diff: webkit/browser/fileapi/syncable/local_file_sync_context.cc

Issue 16109008: Cleanup: Deprecate DriveFileSyncService::kServiceName (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: webkit/browser/fileapi/syncable/local_file_sync_context.cc
diff --git a/webkit/browser/fileapi/syncable/local_file_sync_context.cc b/webkit/browser/fileapi/syncable/local_file_sync_context.cc
index 9aa434efd959c401590ee91b08c17446a053328f..c0a656a12f80cd3f4cf88d02342702670142ebd5 100644
--- a/webkit/browser/fileapi/syncable/local_file_sync_context.cc
+++ b/webkit/browser/fileapi/syncable/local_file_sync_context.cc
@@ -50,7 +50,6 @@ LocalFileSyncContext::LocalFileSyncContext(
void LocalFileSyncContext::MaybeInitializeFileSystemContext(
const GURL& source_url,
- const std::string& service_name,
FileSystemContext* file_system_context,
const SyncStatusCallback& callback) {
DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
@@ -72,7 +71,7 @@ void LocalFileSyncContext::MaybeInitializeFileSystemContext(
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&LocalFileSyncContext::InitializeFileSystemContextOnIOThread,
- this, source_url, service_name,
+ this, source_url,
make_scoped_refptr(file_system_context)));
}
@@ -440,13 +439,12 @@ void LocalFileSyncContext::ShutdownOnIOThread() {
void LocalFileSyncContext::InitializeFileSystemContextOnIOThread(
const GURL& source_url,
- const std::string& service_name,
FileSystemContext* file_system_context) {
DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
DCHECK(file_system_context);
if (!file_system_context->change_tracker()) {
// First registers the service name.
- RegisterSyncableFileSystem(service_name);
+ RegisterSyncableFileSystem();
// Create and initialize LocalFileChangeTracker and call back this method
// later again.
std::set<GURL>* origins_with_changes = new std::set<GURL>;
@@ -461,7 +459,7 @@ void LocalFileSyncContext::InitializeFileSystemContextOnIOThread(
origins_with_changes),
base::Bind(&LocalFileSyncContext::DidInitializeChangeTrackerOnIOThread,
this, base::Owned(tracker_ptr),
- source_url, service_name,
+ source_url,
make_scoped_refptr(file_system_context),
base::Owned(origins_with_changes)));
return;
@@ -508,7 +506,6 @@ SyncStatusCode LocalFileSyncContext::InitializeChangeTrackerOnFileThread(
void LocalFileSyncContext::DidInitializeChangeTrackerOnIOThread(
scoped_ptr<LocalFileChangeTracker>* tracker_ptr,
const GURL& source_url,
- const std::string& service_name,
FileSystemContext* file_system_context,
std::set<GURL>* origins_with_changes,
SyncStatusCode status) {
@@ -525,8 +522,7 @@ void LocalFileSyncContext::DidInitializeChangeTrackerOnIOThread(
origins_with_changes->end());
ScheduleNotifyChangesUpdatedOnIOThread();
- InitializeFileSystemContextOnIOThread(source_url, service_name,
- file_system_context);
+ InitializeFileSystemContextOnIOThread(source_url, file_system_context);
}
void LocalFileSyncContext::DidInitialize(

Powered by Google App Engine
This is Rietveld 408576698