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

Unified Diff: net/disk_cache/simple/simple_index_file_win.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/disk_cache/simple/simple_index_file_unittest.cc ('k') | net/disk_cache/simple/simple_index_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file_win.cc
diff --git a/net/disk_cache/simple/simple_index_file_win.cc b/net/disk_cache/simple/simple_index_file_win.cc
deleted file mode 100644
index 051d12deaf7208c173b0fcaac0849c8f646e402f..0000000000000000000000000000000000000000
--- a/net/disk_cache/simple/simple_index_file_win.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/disk_cache/simple/simple_index_file.h"
-
-#include <string>
-
-#include "base/files/file_enumerator.h"
-#include "base/files/file_path.h"
-
-namespace disk_cache {
-
-// static
-bool SimpleIndexFile::TraverseCacheDirectory(
- const base::FilePath& cache_path,
- const EntryFileCallback& entry_file_callback) {
- const base::FilePath current_directory(FILE_PATH_LITERAL("."));
- const base::FilePath parent_directory(FILE_PATH_LITERAL(".."));
- const base::FilePath::StringType file_pattern = FILE_PATH_LITERAL("*");
- base::FileEnumerator enumerator(
- cache_path, false /* recursive */, base::FileEnumerator::FILES,
- file_pattern);
- for (base::FilePath file_path = enumerator.Next(); !file_path.empty();
- file_path = enumerator.Next()) {
- if (file_path == current_directory || file_path == parent_directory)
- continue;
- entry_file_callback.Run(file_path);
- }
- return true;
-}
-
-} // namespace disk_cache
« no previous file with comments | « net/disk_cache/simple/simple_index_file_unittest.cc ('k') | net/disk_cache/simple/simple_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698