Index: chrome/browser/extensions/file_manager_util.h |
=================================================================== |
--- chrome/browser/extensions/file_manager_util.h (revision 95624) |
+++ chrome/browser/extensions/file_manager_util.h (working copy) |
@@ -42,9 +42,9 @@ |
const FilePath::StringType& default_extension); |
// Opens file browser UI in its own tab on file system location defined with |
- // |dir|. |
+ // |default_path|. |
static void ShowFullTabUrl(Profile* profile, |
- const FilePath& dir); |
+ const FilePath& default_path); |
static void ViewItem(const FilePath& full_path, bool enqueue); |
@@ -52,6 +52,14 @@ |
FileManagerUtil() {} |
// Helper to convert numeric dialog type to a string. |
static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type); |
+ // Help to convert potential dialog arguments into json. |
+ static std::string GetArgumentsJson( |
+ SelectFileDialog::Type type, |
+ const string16& title, |
+ const FilePath& default_path, |
+ const SelectFileDialog::FileTypeInfo* file_types, |
+ int file_type_index, |
+ const FilePath::StringType& default_extension); |
DISALLOW_COPY_AND_ASSIGN(FileManagerUtil); |
}; |