Allow access FileSystem api in devtools.
It is required by the load/save feature of profilers.
This commit is contained in:
parent
1fbeb11371
commit
d5283b2337
2 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
|||
#include "browser/media/media_capture_devices_dispatcher.h"
|
||||
#include "browser/notification_presenter.h"
|
||||
|
||||
#include "content/public/common/url_constants.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
namespace {
|
||||
|
@ -88,4 +90,10 @@ content::MediaObserver* BrowserClient::GetMediaObserver() {
|
|||
return MediaCaptureDevicesDispatcher::GetInstance();
|
||||
}
|
||||
|
||||
void BrowserClient::GetAdditionalAllowedSchemesForFileSystem(
|
||||
std::vector<std::string>* additional_schemes) {
|
||||
additional_schemes->push_back(content::kChromeDevToolsScheme);
|
||||
additional_schemes->push_back(content::kChromeUIScheme);
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
|
|
@ -51,6 +51,8 @@ class BrowserClient : public content::ContentBrowserClient {
|
|||
int render_view_id,
|
||||
int notification_id) OVERRIDE;
|
||||
virtual content::MediaObserver* GetMediaObserver() OVERRIDE;
|
||||
virtual void GetAdditionalAllowedSchemesForFileSystem(
|
||||
std::vector<std::string>* additional_schemes) OVERRIDE;
|
||||
|
||||
BrowserMainParts* browser_main_parts_;
|
||||
scoped_ptr<NotificationPresenter> notification_presenter_;
|
||||
|
|
Loading…
Reference in a new issue