browser: register extension scheme as web safe scheme
This commit is contained in:
parent
15e6028f38
commit
835891b373
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
#include "base/threading/thread_task_runner_handle.h"
|
#include "base/threading/thread_task_runner_handle.h"
|
||||||
#include "chrome/browser/browser_process.h"
|
#include "chrome/browser/browser_process.h"
|
||||||
|
#include "content/public/browser/child_process_security_policy.h"
|
||||||
#include "v8/include/v8-debug.h"
|
#include "v8/include/v8-debug.h"
|
||||||
|
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
|
@ -43,6 +44,9 @@ AtomBrowserMainParts::AtomBrowserMainParts()
|
||||||
gc_timer_(true, true) {
|
gc_timer_(true, true) {
|
||||||
DCHECK(!self_) << "Cannot have two AtomBrowserMainParts";
|
DCHECK(!self_) << "Cannot have two AtomBrowserMainParts";
|
||||||
self_ = this;
|
self_ = this;
|
||||||
|
// Register extension scheme as web safe scheme.
|
||||||
|
content::ChildProcessSecurityPolicy::GetInstance()->
|
||||||
|
RegisterWebSafeScheme("chrome-extension");
|
||||||
}
|
}
|
||||||
|
|
||||||
AtomBrowserMainParts::~AtomBrowserMainParts() {
|
AtomBrowserMainParts::~AtomBrowserMainParts() {
|
||||||
|
|
Loading…
Reference in a new issue