fix devtools filesystem api and allow delegate to request stored filesystem paths
This commit is contained in:
parent
17ff8f2e7e
commit
c25264113f
4 changed files with 9 additions and 6 deletions
|
@ -420,13 +420,15 @@ void InspectableWebContentsImpl::AppendToFile(
|
|||
}
|
||||
|
||||
void InspectableWebContentsImpl::RequestFileSystems() {
|
||||
GetDevToolsWebContents()->GetMainFrame()->ExecuteJavaScript(
|
||||
base::ASCIIToUTF16("DevToolsAPI.fileSystemsLoaded([])"));
|
||||
if (delegate_)
|
||||
delegate_->DevToolsRequestFileSystems();
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::AddFileSystem() {
|
||||
void InspectableWebContentsImpl::AddFileSystem(
|
||||
const std::string& file_system_path) {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsAddFileSystem(base::FilePath());
|
||||
delegate_->DevToolsAddFileSystem(
|
||||
base::FilePath::FromUTF8Unsafe(file_system_path));
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::RemoveFileSystem(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue