diff --git a/brightray/browser/browser_client.cc b/brightray/browser/browser_client.cc index a7e2f3f73f8..70a6790dfd8 100644 --- a/brightray/browser/browser_client.cc +++ b/brightray/browser/browser_client.cc @@ -6,6 +6,7 @@ #include "browser/browser_context.h" #include "browser/browser_main_parts.h" +#include "browser/devtools_delegate.h" #include "browser/media/media_capture_devices_dispatcher.h" #include "browser/notification_presenter.h" @@ -95,4 +96,8 @@ base::FilePath BrowserClient::GetDefaultDownloadDirectory() { return path; } +content::DevToolsManagerDelegate* BrowserClient::GetDevToolsManagerDelegate() { + return new DevToolsManagerDelegate(browser_context()); +} + } // namespace brightray diff --git a/brightray/browser/browser_client.h b/brightray/browser/browser_client.h index 965692e5ff8..9163d6c7021 100644 --- a/brightray/browser/browser_client.h +++ b/brightray/browser/browser_client.h @@ -33,23 +33,24 @@ class BrowserClient : public content::ContentBrowserClient { // Subclasses that override this (e.g., to provide their own protocol // handlers) should call this implementation after doing their own work. - virtual net::URLRequestContextGetter* CreateRequestContext( + net::URLRequestContextGetter* CreateRequestContext( content::BrowserContext* browser_context, content::ProtocolHandlerMap* protocol_handlers, content::URLRequestInterceptorScopedVector protocol_interceptors) override; private: - virtual content::BrowserMainParts* CreateBrowserMainParts( + content::BrowserMainParts* CreateBrowserMainParts( const content::MainFunctionParams&) override; - virtual void ShowDesktopNotification( + void ShowDesktopNotification( const content::ShowDesktopNotificationHostMsgParams& params, content::RenderFrameHost* render_frame_host, scoped_ptr delegate, base::Closure* cancel_callback) override; - virtual content::MediaObserver* GetMediaObserver() override; - virtual void GetAdditionalAllowedSchemesForFileSystem( + content::MediaObserver* GetMediaObserver() override; + void GetAdditionalAllowedSchemesForFileSystem( std::vector* additional_schemes) override; - virtual base::FilePath GetDefaultDownloadDirectory() override; + base::FilePath GetDefaultDownloadDirectory() override; + content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; BrowserMainParts* browser_main_parts_; scoped_ptr notification_presenter_;