Skip to content

Commit

Permalink
Merge pull request crosswalk-project#3566 from darktears/file-persist…
Browse files Browse the repository at this point in the history
…ent-XWALK-4961

Fix FileApiPersistent API SecurityError.
  • Loading branch information
Raphael Kubo da Costa committed Feb 24, 2016
2 parents e3bbe70 + 0696005 commit 4f5621f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/browser/xwalk_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,13 @@ void XWalkContentBrowserClient::GetStoragePartitionConfigForSite(
#endif
}

void XWalkContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
std::vector<std::string>* additional_schemes) {
#if !defined(OS_ANDROID)
additional_schemes->push_back("app");
#endif
}

content::PresentationServiceDelegate* XWalkContentBrowserClient::
GetPresentationServiceDelegate(content::WebContents* web_contents) {
#if defined(OS_WIN)
Expand Down
3 changes: 3 additions & 0 deletions runtime/browser/xwalk_content_browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ class XWalkContentBrowserClient : public content::ContentBrowserClient {
std::string* partition_name,
bool* in_memory) override;

void GetAdditionalAllowedSchemesForFileSystem(
std::vector<std::string>* additional_schemes) override;

#if defined(OS_ANDROID)
virtual void GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
Expand Down

0 comments on commit 4f5621f

Please sign in to comment.