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, |