Skip to content

Commit c2ae16e

Browse files
committed
Fix crash on requesting quota of filesys API
1 parent fdf8d45 commit c2ae16e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

nw.gypi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@
283283
'src/shell_content_client.h',
284284
'src/shell_main_delegate.cc',
285285
'src/shell_main_delegate.h',
286+
'src/shell_quota_permission_context.cc',
287+
'src/shell_quota_permission_context.h',
286288
],
287289
'msvs_settings': {
288290
'VCLinkerTool': {

src/shell_content_browser_client.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "content/nw/src/common/shell_switches.h"
4646
#include "content/nw/src/browser/printing/print_job_manager.h"
4747
#include "content/nw/src/browser/shell_devtools_delegate.h"
48+
#include "content/nw/src/shell_quota_permission_context.h"
4849
#include "content/nw/src/browser/shell_resource_dispatcher_host_delegate.h"
4950
#include "content/nw/src/media/media_internals.h"
5051
#include "content/nw/src/nw_package.h"
@@ -409,5 +410,9 @@ void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
409410
}
410411
#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
411412

413+
QuotaPermissionContext*
414+
ShellContentBrowserClient::CreateQuotaPermissionContext() {
415+
return new ShellQuotaPermissionContext();
416+
}
412417

413418
} // namespace content

src/shell_content_browser_client.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class ShellContentBrowserClient : public ContentBrowserClient {
8989
int child_process_id,
9090
std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE;
9191
#endif
92+
virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
9293

9394
private:
9495
ShellBrowserContext* ShellBrowserContextForBrowserContext(

0 commit comments

Comments
 (0)