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

Unified Diff: chrome/browser/dom_ui/slideshow_ui.cc

Issue 3175023: Allow net::DirectoryLister to be used to recursively list the directory, and ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/slideshow_ui.cc
===================================================================
--- chrome/browser/dom_ui/slideshow_ui.cc (revision 56913)
+++ chrome/browser/dom_ui/slideshow_ui.cc (working copy)
@@ -69,7 +69,8 @@
void Init();
// DirectoryLister::DirectoryListerDelegate methods:
- virtual void OnListFile(const file_util::FileEnumerator::FindInfo& data);
+ virtual void OnListFile(
+ const net::DirectoryLister::DirectoryListerData& data);
virtual void OnListDone(int error);
// DOMMessageHandler implementation.
@@ -228,21 +229,21 @@
}
void SlideshowHandler::OnListFile(
- const file_util::FileEnumerator::FindInfo& data) {
+ const net::DirectoryLister::DirectoryListerData& data) {
#if defined(OS_CHROMEOS)
- if (data.filename[0] == '.') {
+ if (data.info.filename[0] == '.') {
return;
}
- if (!PathIsImageFile(data.filename.c_str())) {
+ if (!PathIsImageFile(data.info.filename.c_str())) {
return;
}
DictionaryValue* file_value = new DictionaryValue();
- file_value->SetString(kPropertyTitle, data.filename);
+ file_value->SetString(kPropertyTitle, data.info.filename);
file_value->SetString(kPropertyPath,
- currentpath_.Append(data.filename).value());
- file_value->SetBoolean(kPropertyDirectory, S_ISDIR(data.stat.st_mode));
+ currentpath_.Append(data.info.filename).value());
+ file_value->SetBoolean(kPropertyDirectory, S_ISDIR(data.info.stat.st_mode));
filelist_value_->Append(file_value);
std::string val;
file_value->GetString(kPropertyTitle, &val);
« no previous file with comments | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698