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

Unified Diff: base/file_path.cc

Issue 5754002: Moving away from shell api to support long path names on windows for filesystem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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_path.cc
===================================================================
--- base/file_path.cc (revision 68690)
+++ base/file_path.cc (working copy)
@@ -34,6 +34,11 @@
const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL(".");
const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL("..");
+#if defined(OS_WIN)
+const FilePath::CharType FilePath::kExtendedPathPrefix[] = FILE_PATH_LITERAL(
+ "\\\\?\\");
Mark Mentovai 2010/12/17 01:58:49 This is wrapped poorly. Wrap after the =, so FILE_
+#endif
+
const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.');
typedef FilePath::StringType StringType;
@@ -1190,3 +1195,9 @@
return FilePath(copy);
}
#endif
+
+#if defined(OS_WIN)
+bool FilePath::StartsWithExtendedPathPrefix() const {
+ return StartsWith(path_, kExtendedPathPrefix, false);
+}
+#endif
« no previous file with comments | « base/file_path.h ('k') | base/file_path_unittest.cc » ('j') | base/file_util_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698