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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.cc

Issue 10831122: gdata cleanup: stop passing Profile* around GData operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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/chromeos/gdata/gdata_documents_service.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.cc b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
index b7ba538e6eb80df715e8a7e42a4d2b8992285c95..7f1f27e26b6c1e95fca1eae17d992baefee90a24 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -103,7 +103,6 @@ void DocumentsService::GetDocuments(const GURL& url,
GetDocumentsOperation* operation =
new GetDocumentsOperation(operation_registry(),
- profile_,
start_changestamp,
search_query,
directory_resource_id,
@@ -119,7 +118,6 @@ void DocumentsService::GetDocumentEntry(const std::string& resource_id,
GetDocumentEntryOperation* operation =
new GetDocumentEntryOperation(operation_registry(),
- profile_,
resource_id,
callback);
runner_->StartOperationWithRetry(operation);
@@ -129,9 +127,7 @@ void DocumentsService::GetAccountMetadata(const GetDataCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
GetAccountMetadataOperation* operation =
- new GetAccountMetadataOperation(operation_registry(),
- profile_,
- callback);
+ new GetAccountMetadataOperation(operation_registry(), callback);
runner_->StartOperationWithRetry(operation);
}
@@ -139,7 +135,7 @@ void DocumentsService::GetAboutResource(const GetDataCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
GetAboutOperation* operation =
- new GetAboutOperation(operation_registry(), profile_, callback);
+ new GetAboutOperation(operation_registry(), callback);
runner_->StartOperationWithRetry(operation);
}
@@ -147,7 +143,7 @@ void DocumentsService::GetApplicationList(const GetDataCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
GetApplistOperation* operation =
- new GetApplistOperation(operation_registry(), profile_, callback);
+ new GetApplistOperation(operation_registry(), callback);
runner_->StartOperationWithRetry(operation);
}
@@ -178,7 +174,7 @@ void DocumentsService::DownloadFile(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new DownloadFileOperation(operation_registry(), profile_,
+ new DownloadFileOperation(operation_registry(),
download_action_callback,
get_download_data_callback, document_url,
virtual_path, local_cache_path));
@@ -189,7 +185,7 @@ void DocumentsService::DeleteDocument(const GURL& document_url,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new DeleteDocumentOperation(operation_registry(), profile_, callback,
+ new DeleteDocumentOperation(operation_registry(), callback,
document_url));
}
@@ -200,7 +196,7 @@ void DocumentsService::CreateDirectory(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new CreateDirectoryOperation(operation_registry(), profile_, callback,
+ new CreateDirectoryOperation(operation_registry(), callback,
parent_content_url, directory_name));
}
@@ -210,7 +206,7 @@ void DocumentsService::CopyDocument(const std::string& resource_id,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new CopyDocumentOperation(operation_registry(), profile_, callback,
+ new CopyDocumentOperation(operation_registry(), callback,
resource_id, new_name));
}
@@ -220,7 +216,7 @@ void DocumentsService::RenameResource(const GURL& resource_url,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new RenameResourceOperation(operation_registry(), profile_, callback,
+ new RenameResourceOperation(operation_registry(), callback,
resource_url, new_name));
}
@@ -232,7 +228,6 @@ void DocumentsService::AddResourceToDirectory(
runner_->StartOperationWithRetry(
new AddResourceToDirectoryOperation(operation_registry(),
- profile_,
callback,
parent_content_url,
resource_url));
@@ -247,7 +242,6 @@ void DocumentsService::RemoveResourceFromDirectory(
runner_->StartOperationWithRetry(
new RemoveResourceFromDirectoryOperation(operation_registry(),
- profile_,
callback,
parent_content_url,
resource_url,
@@ -265,8 +259,7 @@ void DocumentsService::InitiateUpload(const InitiateUploadParams& params,
}
runner_->StartOperationWithRetry(
- new InitiateUploadOperation(operation_registry(), profile_, callback,
- params));
+ new InitiateUploadOperation(operation_registry(), callback, params));
}
void DocumentsService::ResumeUpload(const ResumeUploadParams& params,
@@ -274,8 +267,7 @@ void DocumentsService::ResumeUpload(const ResumeUploadParams& params,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new ResumeUploadOperation(operation_registry(), profile_, callback,
- params));
+ new ResumeUploadOperation(operation_registry(), callback, params));
}
@@ -285,7 +277,7 @@ void DocumentsService::AuthorizeApp(const GURL& resource_url,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
runner_->StartOperationWithRetry(
- new AuthorizeAppsOperation(operation_registry(), profile_, callback,
+ new AuthorizeAppsOperation(operation_registry(), callback,
resource_url, app_ids));
}
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_contacts_service.cc ('k') | chrome/browser/chromeos/gdata/gdata_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698