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

Unified Diff: chrome/browser/chromeos/drive/change_list_loader.h

Issue 13079006: Fix ChangeListLoader's callback invocation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments (+rebase). Created 7 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 | chrome/browser/chromeos/drive/change_list_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/change_list_loader.h
diff --git a/chrome/browser/chromeos/drive/change_list_loader.h b/chrome/browser/chromeos/drive/change_list_loader.h
index ec867a1336dc37ec57384381907ceba4485b84d9..ac5d2d4ec8be353037cf609b7483f8f1a46f1c0b 100644
--- a/chrome/browser/chromeos/drive/change_list_loader.h
+++ b/chrome/browser/chromeos/drive/change_list_loader.h
@@ -152,8 +152,10 @@ class ChangeListLoader {
google_apis::GDataErrorCode status,
scoped_ptr<google_apis::AboutResource> about_resource);
- // Initiates the directory contents loading, based on
- // |directory_fetch_info|.
+ // Initiates the directory contents loading, based on |directory_fetch_info|.
+ // When it is finished it just runs |callback| but no other callbacks in
+ // |pending_load_callback_|, because it depends on the caller whether to flush
+ // callbacks. Thus, the caller must be responsible for task flushing.
void DoLoadDirectoryFromServer(const DirectoryFetchInfo& directory_fetch_info,
const FileOperationCallback& callback);
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/change_list_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698