diff --git a/brightray/browser/inspectable_web_contents_delegate.h b/brightray/browser/inspectable_web_contents_delegate.h index 606bfa9a4ea9..9c4ee722c2a3 100644 --- a/brightray/browser/inspectable_web_contents_delegate.h +++ b/brightray/browser/inspectable_web_contents_delegate.h @@ -14,9 +14,10 @@ class InspectableWebContentsDelegate { const std::string& url, const std::string& content, bool save_as) {} virtual void DevToolsAppendToFile( const std::string& url, const std::string& content) {} - virtual void DevToolsAddFileSystem() {} + virtual void DevToolsAddFileSystem( + const base::FilePath& file_system_path) {} virtual void DevToolsRemoveFileSystem( - const std::string& file_system_path) {} + const base::FilePath& file_system_path) {} }; } // namespace brightray diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index fa62d3d202a6..ba566f2339fa 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -374,13 +374,14 @@ void InspectableWebContentsImpl::RequestFileSystems() { void InspectableWebContentsImpl::AddFileSystem() { if (delegate_) - delegate_->DevToolsAddFileSystem(); + delegate_->DevToolsAddFileSystem(base::FilePath()); } void InspectableWebContentsImpl::RemoveFileSystem( const std::string& file_system_path) { if (delegate_) - delegate_->DevToolsRemoveFileSystem(file_system_path); + delegate_->DevToolsRemoveFileSystem( + base::FilePath::FromUTF8Unsafe(file_system_path)); } void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(