Skip to content

Commit 24b82dc

Browse files
committed
support filesys api for app protocol
1 parent 66217f5 commit 24b82dc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/shell_content_browser_client.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,11 @@ void ShellContentBrowserClient::AllowCertificateError(
338338
return;
339339
}
340340

341+
void ShellContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
342+
std::vector<std::string>* additional_allowed_schemes) {
343+
ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
344+
additional_allowed_schemes);
345+
additional_allowed_schemes->push_back("app");
346+
}
341347

342348
} // namespace content

src/shell_content_browser_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class ShellContentBrowserClient : public ContentBrowserClient {
8181
bool strict_enforcement,
8282
const base::Callback<void(bool)>& callback,
8383
content::CertificateRequestResultType* result) OVERRIDE;
84+
virtual void GetAdditionalAllowedSchemesForFileSystem(
85+
std::vector<std::string>* additional_schemes) OVERRIDE;
8486

8587
private:
8688
ShellBrowserContext* ShellBrowserContextForBrowserContext(

0 commit comments

Comments
 (0)