Chromium Code Reviews| Index: views/widget/widget.h |
| diff --git a/views/widget/widget.h b/views/widget/widget.h |
| index e71f1bacd09c4e217cf53d1ef53ffb7842e76371..15868ea0b1169e10165fc2b3d67eb219815157ad 100644 |
| --- a/views/widget/widget.h |
| +++ b/views/widget/widget.h |
| @@ -482,7 +482,7 @@ class Widget : public internal::NativeWidgetDelegate, |
| const_cast<const Widget*>(this)->client_view()); |
| } |
| const ClientView* client_view() const { |
| - return non_client_view()->client_view(); |
| + return non_client_view() ? non_client_view()->client_view() : NULL; |
|
Peter Kasting
2011/07/20 23:09:40
Nit: Might as well use |non_client_view_| directly
|
| } |
| #if defined(UNIT_TEST) |