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

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

Issue 10836285: Refactor GDataWapiFeedLoader::LoadFromServer() parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment. 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 | chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h » ('j') | 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 51f4a4c6a4b9023216b39626beb33981af6823ff..966147b6e9ae595aff17ee5afa5a6bce39849311 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -2026,15 +2026,9 @@ void GDataFileSystem::RequestDirectoryRefreshOnUIThreadAfterGetEntryInfo(
return;
}
- feed_loader_->LoadFromServer(
+ feed_loader_->LoadDirectoryFromServer(
directory_service_->origin(),
- 0, // start_changestamp - Not a delta feed.
- 0, // root_feed_changestamp - Not used.
- true, // multiple feeds
- std::string(), // No search query
- GURL(), // feed_to_load - Feed not explicitly set
- entry_proto->resource_id(), // Load the feed for this directory.
- FileOperationCallback(), // load_finished_callback.
+ entry_proto->resource_id(),
base::Bind(&GDataFileSystem::OnRequestDirectoryRefresh,
ui_weak_ptr_,
file_path));
@@ -2435,21 +2429,11 @@ void GDataFileSystem::SearchAsyncOnUIThread(
const GURL& next_feed,
const SearchCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- scoped_ptr<std::vector<DocumentFeed*> > feed_list(
- new std::vector<DocumentFeed*>);
- ContentOrigin initial_origin = directory_service_->origin();
- feed_loader_->LoadFromServer(
- initial_origin,
- 0, 0, // We don't use change stamps when fetching search
- // data; we always fetch the whole result feed.
- false, // Stop fetching search results after first feed
- // chunk to avoid displaying huge number of search
- // results (especially since we don't cache them).
+ feed_loader_->SearchFromServer(
+ directory_service_->origin(),
search_query,
next_feed,
- std::string(), // No directory resource ID.
- FileOperationCallback(), // Not used.
base::Bind(&GDataFileSystem::OnSearch, ui_weak_ptr_, callback));
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698