fix devtools filesystem api and allow delegate to request stored filesystem paths

This commit is contained in:
Robo 2016-03-15 07:53:40 +05:30
parent 17ff8f2e7e
commit c25264113f
4 changed files with 9 additions and 6 deletions

View file

@ -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(