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

Unified Diff: pkg/analyzer/lib/file_system/memory_file_system.dart

Issue 632353002: Add support for cross-session storage (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: pkg/analyzer/lib/file_system/memory_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart
index 3751c1c171063ab4a91311e92f42f9fc07213f8e..93fe125a901eaa7ea6fce317ed07f0a947b95d4c 100644
--- a/pkg/analyzer/lib/file_system/memory_file_system.dart
+++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
@@ -65,6 +65,11 @@ class MemoryResourceProvider implements ResourceProvider {
return resource;
}
+ @override
+ Folder getStateLocation(String pluginId) {
+ return newFolder('/user/home/$pluginId');
Brian Wilkerson 2014/10/07 15:55:23 I'm tempted to use an invalid folder name in the p
+ }
+
void modifyFile(String path, String content) {
_checkFileAtPath(path);
_pathToContent[path] = content;

Powered by Google App Engine
This is Rietveld 408576698