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

Unified Diff: extensions/shell/browser/shell_extensions_api_client.cc

Issue 2962793002: AppShell: Enable chrome.fileSystem.retainEntry/restoreEntry (Closed)
Patch Set: Remove extraneous DEPS Created 3 years, 5 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 | « extensions/shell/browser/shell_extensions_api_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extensions_api_client.cc
diff --git a/extensions/shell/browser/shell_extensions_api_client.cc b/extensions/shell/browser/shell_extensions_api_client.cc
index e290498a9934f9256b073842e5fae0c13d09f79b..9dfcca238977f5b0c77461432895bb7be5ff1215 100644
--- a/extensions/shell/browser/shell_extensions_api_client.cc
+++ b/extensions/shell/browser/shell_extensions_api_client.cc
@@ -10,10 +10,15 @@
#include "extensions/shell/browser/shell_extension_web_contents_observer.h"
#include "extensions/shell/browser/shell_virtual_keyboard_delegate.h"
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#include "extensions/shell/browser/api/file_system/shell_file_system_delegate.h"
+#endif
+
namespace extensions {
-ShellExtensionsAPIClient::ShellExtensionsAPIClient() {
-}
+ShellExtensionsAPIClient::ShellExtensionsAPIClient() {}
+
+ShellExtensionsAPIClient::~ShellExtensionsAPIClient() {}
void ShellExtensionsAPIClient::AttachWebContentsHelpers(
content::WebContents* web_contents) const {
@@ -30,4 +35,12 @@ ShellExtensionsAPIClient::CreateVirtualKeyboardDelegate() const {
return base::MakeUnique<ShellVirtualKeyboardDelegate>();
}
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+FileSystemDelegate* ShellExtensionsAPIClient::GetFileSystemDelegate() {
+ if (!file_system_delegate_)
+ file_system_delegate_ = base::MakeUnique<ShellFileSystemDelegate>();
+ return file_system_delegate_.get();
+}
+#endif
+
} // namespace extensions
« no previous file with comments | « extensions/shell/browser/shell_extensions_api_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698