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

Unified Diff: net/base/directory_lister.cc

Issue 24616002: Clean up a few unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 7 years, 3 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: net/base/directory_lister.cc
diff --git a/net/base/directory_lister.cc b/net/base/directory_lister.cc
index 046be32d49f749f2cfc553c89e84407a00f7e42f..e75e9f808dc87e828a2cd2adee5dfb87b0e8bcbb 100644
--- a/net/base/directory_lister.cc
+++ b/net/base/directory_lister.cc
@@ -20,8 +20,6 @@ namespace net {
namespace {
-const int kFilesPerEvent = 8;
-
bool IsDotDot(const base::FilePath& path) {
return FILE_PATH_LITERAL("..") == path.BaseName().value();
}
@@ -169,6 +167,7 @@ void DirectoryLister::Core::StartInternal() {
should be done from JS to give more flexibility in the page. When we do
that, we can uncomment this to send incremental updates to the page.
+ const int kFilesPerEvent = 8;
if (file_data.size() < kFilesPerEvent)
continue;

Powered by Google App Engine
This is Rietveld 408576698