diff --git a/brightray/brightray.gyp b/brightray/brightray.gyp index 41dec3e1a52..45b7bb5e4d0 100644 --- a/brightray/brightray.gyp +++ b/brightray/brightray.gyp @@ -48,8 +48,6 @@ 'browser/devtools_embedder_message_dispatcher.h', 'browser/devtools_ui.cc', 'browser/devtools_ui.h', - 'browser/download_manager_delegate.cc', - 'browser/download_manager_delegate.h', 'browser/inspectable_web_contents.cc', 'browser/inspectable_web_contents.h', 'browser/inspectable_web_contents_delegate.cc', diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index c3820de64be..05f127755c1 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -4,7 +4,6 @@ #include "browser/browser_context.h" -#include "browser/download_manager_delegate.h" #include "browser/inspectable_web_contents_impl.h" #include "browser/network_delegate.h" #include "common/application_info.h" @@ -145,21 +144,19 @@ content::ResourceContext* BrowserContext::GetResourceContext() { } content::DownloadManagerDelegate* BrowserContext::GetDownloadManagerDelegate() { - if (!download_manager_delegate_) - download_manager_delegate_.reset(new DownloadManagerDelegate); - return download_manager_delegate_.get(); + return nullptr; } content::BrowserPluginGuestManager* BrowserContext::GetGuestManager() { - return NULL; + return nullptr; } storage::SpecialStoragePolicy* BrowserContext::GetSpecialStoragePolicy() { - return NULL; + return nullptr; } content::PushMessagingService* BrowserContext::GetPushMessagingService() { - return NULL; + return nullptr; } content::SSLHostStateDelegate* BrowserContext::GetSSLHostStateDelegate() { diff --git a/brightray/browser/browser_context.h b/brightray/browser/browser_context.h index eb2279db7a7..90cefbcf795 100644 --- a/brightray/browser/browser_context.h +++ b/brightray/browser/browser_context.h @@ -14,8 +14,6 @@ class PrefService; namespace brightray { -class DownloadManagerDelegate; - class BrowserContext : public content::BrowserContext, public brightray::URLRequestContextGetter::Delegate { public: @@ -68,7 +66,6 @@ class BrowserContext : public content::BrowserContext, scoped_ptr resource_context_; scoped_refptr url_request_getter_; scoped_ptr prefs_; - scoped_ptr download_manager_delegate_; DISALLOW_COPY_AND_ASSIGN(BrowserContext); }; diff --git a/brightray/browser/download_manager_delegate.cc b/brightray/browser/download_manager_delegate.cc deleted file mode 100644 index f241f8441bc..00000000000 --- a/brightray/browser/download_manager_delegate.cc +++ /dev/null @@ -1,11 +0,0 @@ -#include "browser/download_manager_delegate.h" - -namespace brightray { - -DownloadManagerDelegate::DownloadManagerDelegate() { -} - -DownloadManagerDelegate::~DownloadManagerDelegate() { -} - -} diff --git a/brightray/browser/download_manager_delegate.h b/brightray/browser/download_manager_delegate.h deleted file mode 100644 index 95ac7d5a817..00000000000 --- a/brightray/browser/download_manager_delegate.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef BRIGHTRAY_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ -#define BRIGHTRAY_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ - -#include "content/public/browser/download_manager_delegate.h" - -namespace brightray { - -class DownloadManagerDelegate : public content::DownloadManagerDelegate { - public: - DownloadManagerDelegate(); - ~DownloadManagerDelegate(); - - private: - DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); -}; - -} // namespace brightray - -#endif