Merge the logic of managing ViewsDelegate

This commit is contained in:
Cheng Zhao 2018-04-19 15:38:33 +09:00
parent 9bc79f840e
commit 1c6c75da4f
4 changed files with 12 additions and 18 deletions

View file

@ -16,12 +16,6 @@
#include "content/public/browser/browser_main_parts.h"
#include "ui/views/layout/layout_provider.h"
#if defined(TOOLKIT_VIEWS)
namespace brightray {
class ViewsDelegate;
}
#endif
#if defined(USE_AURA)
namespace wm {
class WMState;
@ -56,10 +50,6 @@ class BrowserMainParts : public content::BrowserMainParts {
std::unique_ptr<IOThread> io_thread_;
#if defined(TOOLKIT_VIEWS)
std::unique_ptr<ViewsDelegate> views_delegate_;
#endif
#if defined(USE_AURA)
std::unique_ptr<wm::WMState> wm_state_;
#endif