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

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

Issue 9853022: gdata: Fix a bug that caused a deadlock when "Google Docs" is clicked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 eb7bdb5599d23bd058c4b3323de94155dc2f74a1..a8f6cc9483070d5e8a9d802932e950012d3409fe 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -524,9 +524,15 @@ void GDataFileSystem::FindFileByPathAsync(
LoadFeedFromServer(search_file_path, callback);
return;
}
- GDataFileSystem::FindFileByPathOnCallingThread(
- search_file_path,
- callback);
+
+ // Post a task to the same thread, rather than calling it here, as
+ // FindFileByPathAsync() is asynchronous.
+ base::MessageLoopProxy::current()->PostTask(
Ben Chan 2012/03/26 16:28:42 Let's look into a better way to handle the lock bu
+ FROM_HERE,
+ base::Bind(&GDataFileSystem::FindFileByPathOnCallingThread,
+ GetWeakPtrForCurrentThread(),
+ search_file_path,
+ callback));
}
void GDataFileSystem::FindFileByPathOnCallingThread(
« 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