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

Unified Diff: chrome/common/extensions/docs/server2/local_file_system.py

Issue 264793013: Fixing Extensions Integration Test LocalFileSystem path issues under Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo. Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/local_file_system.py
diff --git a/chrome/common/extensions/docs/server2/local_file_system.py b/chrome/common/extensions/docs/server2/local_file_system.py
index 8655cfe8eba5763c9c682fe59482106689d2e75b..7d085945ca69767b01868cbc91d7a357dbd73d35 100644
--- a/chrome/common/extensions/docs/server2/local_file_system.py
+++ b/chrome/common/extensions/docs/server2/local_file_system.py
@@ -69,6 +69,8 @@ class LocalFileSystem(FileSystem):
filesystem.
'''
def __init__(self, base_path):
+ # Enforce POSIX path, so path validity checks pass for Windows.
+ base_path = base_path.replace(os.sep, '/')
AssertIsDirectory(base_path)
self._base_path = _ConvertToFilepath(base_path)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698