Fix API changes on Linux

This commit is contained in:
Cheng Zhao 2015-09-02 17:29:30 +08:00
parent 38a211db2e
commit 90125c44e3

View file

@ -13,13 +13,9 @@
namespace brightray { namespace brightray {
ViewsDelegate::ViewsDelegate() { ViewsDelegate::ViewsDelegate() {
DCHECK(!views::ViewsDelegate::views_delegate);
views::ViewsDelegate::views_delegate = this;
} }
ViewsDelegate::~ViewsDelegate() { ViewsDelegate::~ViewsDelegate() {
DCHECK_EQ(views::ViewsDelegate::views_delegate, this);
views::ViewsDelegate::views_delegate = NULL;
} }
void ViewsDelegate::SaveWindowPlacement(const views::Widget* window, void ViewsDelegate::SaveWindowPlacement(const views::Widget* window,