Index: components/profile_service/public/interfaces/profile.mojom |
diff --git a/components/profile_service/public/interfaces/profile.mojom b/components/profile_service/public/interfaces/profile.mojom |
index 898f4576ce2a3902c6a8d02beb941ad4b9146415..3f974f25221a40b344603530068a8e9561aa0802 100644 |
--- a/components/profile_service/public/interfaces/profile.mojom |
+++ b/components/profile_service/public/interfaces/profile.mojom |
@@ -5,6 +5,7 @@ |
module profile; |
import "components/filesystem/public/interfaces/directory.mojom"; |
+import "components/filesystem/public/interfaces/types.mojom"; |
// An encapsulation around the per-profile storage. |
// |
@@ -13,5 +14,10 @@ import "components/filesystem/public/interfaces/directory.mojom"; |
// it has access to is the User's profile. |
interface ProfileService { |
// Returns the user profile directory. |
- GetDirectory(filesystem.Directory& dir); |
+ GetDirectory(filesystem.Directory& dir) => (); |
+ |
+ // Returns a subdirectory under the profile dir. Returns a filesystem error |
+ // when we fail to create the subdirectory. |
+ GetSubDirectory(string dir_path, filesystem.Directory& dir) |
+ => (filesystem.FileError err); |
}; |