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

Unified Diff: base/file_util_win.cc

Issue 7085005: Disallow links from being seen by the extensions via the fileapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change fileapi to use IsLink on all platforms. Created 9 years, 7 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: base/file_util_win.cc
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index 368961459b3efdf46cbba4422a6ae21d3a82ea35..dccdf5124b101087aaffad9647d8376555ae63b5 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -702,6 +702,11 @@ bool CreateDirectory(const FilePath& full_path) {
}
}
+// No symlinks on windows
Evan Martin 2011/05/31 21:22:32 This isn't quite true -- NTFS supports junctions:
rkc 2011/05/31 21:49:56 Done. On 2011/05/31 21:22:32, Evan Martin wrote:
+bool IsLink(const FilePath& file_path) {
+ return false;
+}
+
bool GetFileInfo(const FilePath& file_path, base::PlatformFileInfo* results) {
base::ThreadRestrictions::AssertIOAllowed();

Powered by Google App Engine
This is Rietveld 408576698