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

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

Issue 10274002: Add gdata content search (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix renaming 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
Index: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
index 992a6949af1f697df5197f31738d41b1f575e97f..02f7370d97c396c94171b70f43b4a3781f54e5d8 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
@@ -13,8 +13,9 @@
#include "base/values.h"
#include "content/public/browser/browser_thread.h"
#include "chrome/browser/chromeos/gdata/gdata.pb.h"
-#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
#include "chrome/browser/chromeos/gdata/gdata_file_system.h"
+#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
+#include "chrome/browser/chromeos/gdata/gdata_util.h"
#include "webkit/blob/shareable_file_reference.h"
#include "webkit/fileapi/file_system_file_util_proxy.h"
#include "webkit/fileapi/file_system_types.h"
@@ -152,6 +153,16 @@ void GDataFileSystemProxy::ReadDirectory(const GURL& file_url,
return;
}
+ if (util::GetSearchPathStatus(file_path) == util::GDATA_SEARCH_PATH_QUERY) {
satorux1 2012/05/03 17:58:34 please add some comment about what we are doing he
tbarzic 2012/05/03 23:56:17 Done.
+ file_system_->SearchContent(
+ file_path.BaseName().value(),
+ base::Bind(&GDataFileSystemProxy::OnReadDirectory,
+ this,
+ file_system_->hide_hosted_documents(),
+ callback));
+ return;
+ }
+
file_system_->ReadDirectoryByPathAsync(
file_path,
base::Bind(&GDataFileSystemProxy::OnReadDirectory,

Powered by Google App Engine
This is Rietveld 408576698