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

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

Issue 10836154: gdata: Use GDataDirectoryService::GetEntryInfoByPath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index c629eea5f8477b16fa4c2bc3ac16e283ccb7aa7b..c809f8643d1afb3b9623c2f83098e1dde97399d8 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -725,7 +725,7 @@ void GDataFileSystem::TransferFileFromLocalToRemote(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Make sure the destination directory exists.
- GetEntryInfoByPath(
+ directory_service_->GetEntryInfoByPath(
remote_dest_file_path.DirName(),
base::Bind(
&GDataFileSystem::TransferFileFromLocalToRemoteAfterGetEntryInfo,
@@ -849,7 +849,7 @@ void GDataFileSystem::StartFileUploadOnUIThread(
}
// Make sure the destination directory exists.
- GetEntryInfoByPath(
+ directory_service_->GetEntryInfoByPath(
params.remote_file_path.DirName(),
base::Bind(
&GDataFileSystem::StartFileUploadOnUIThreadAfterGetEntryInfo,
@@ -1080,13 +1080,14 @@ void GDataFileSystem::Rename(const FilePath& file_path,
}
// Get the edit URL of an entry at |file_path|.
- GetEntryInfoByPath(file_path,
- base::Bind(
- &GDataFileSystem::RenameAfterGetEntryInfo,
- ui_weak_ptr_,
- file_path,
- new_name,
- callback));
+ directory_service_->GetEntryInfoByPath(
+ file_path,
+ base::Bind(
+ &GDataFileSystem::RenameAfterGetEntryInfo,
+ ui_weak_ptr_,
+ file_path,
+ new_name,
+ callback));
}
void GDataFileSystem::RenameAfterGetEntryInfo(
@@ -1297,13 +1298,14 @@ void GDataFileSystem::RemoveOnUIThread(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Get the edit URL of an entry at |file_path|.
- GetEntryInfoByPath(file_path,
- base::Bind(
- &GDataFileSystem::RemoveOnUIThreadAfterGetEntryInfo,
- ui_weak_ptr_,
- file_path,
- is_recursive,
- callback));
+ directory_service_->GetEntryInfoByPath(
+ file_path,
+ base::Bind(
+ &GDataFileSystem::RemoveOnUIThreadAfterGetEntryInfo,
+ ui_weak_ptr_,
+ file_path,
+ is_recursive,
+ callback));
}
void GDataFileSystem::RemoveOnUIThreadAfterGetEntryInfo(
@@ -1501,7 +1503,7 @@ void GDataFileSystem::GetFileByPathOnUIThread(
const GetDownloadDataCallback& get_download_data_callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- GetEntryInfoByPath(
+ directory_service_->GetEntryInfoByPath(
file_path,
base::Bind(&GDataFileSystem::OnGetEntryInfoCompleteForGetFileByPath,
ui_weak_ptr_,
@@ -1902,7 +1904,7 @@ void GDataFileSystem::RequestDirectoryRefreshOnUIThread(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Make sure the destination directory exists.
- GetEntryInfoByPath(
+ directory_service_->GetEntryInfoByPath(
file_path,
base::Bind(
&GDataFileSystem::RequestDirectoryRefreshOnUIThreadAfterGetEntryInfo,
@@ -3019,7 +3021,7 @@ void GDataFileSystem::OpenFileOnUIThread(const FilePath& file_path,
}
open_files_.insert(file_path);
- GetEntryInfoByPath(
+ directory_service_->GetEntryInfoByPath(
file_path,
base::Bind(&GDataFileSystem::OnGetEntryInfoCompleteForOpenFile,
ui_weak_ptr_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698