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

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

Issue 10169041: gdata: Reduce use of GetWeakPtrForCurrentThread() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 18eae5de1d87487ce19e7264c9841371d9dcfcc0..60a99723b544f65dad59cec033e2c6c43a961430 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -1137,7 +1137,7 @@ void GDataFileSystem::TransferFile(const FilePath& local_file_path,
local_file_path,
resource_id),
base::Bind(&GDataFileSystem::TransferFileForResourceId,
- GetWeakPtrForCurrentThread(),
+ ui_weak_ptr_,
local_file_path,
remote_dest_file_path,
callback,
@@ -1187,7 +1187,7 @@ void GDataFileSystem::TransferRegularFile(
error,
upload_file_info),
base::Bind(&GDataFileSystem::StartFileUploadOnUIThread,
- GetWeakPtrForCurrentThread(),
+ ui_weak_ptr_,
callback,
error,
upload_file_info));
@@ -1236,7 +1236,7 @@ void GDataFileSystem::StartFileUploadOnUIThread(
upload_file_info->completion_callback =
base::Bind(&GDataFileSystem::OnTransferCompleted,
- GetWeakPtrForCurrentThread(),
+ ui_weak_ptr_,
callback);
service->uploader()->UploadFile(scoped_ptr<UploadFileInfo>(upload_file_info));
« 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