summaryrefslogtreecommitdiffstats
path: root/views/focus/external_focus_tracker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/focus/external_focus_tracker.cc')
-rw-r--r--views/focus/external_focus_tracker.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/focus/external_focus_tracker.cc b/views/focus/external_focus_tracker.cc
index 8f8bfdf..b08d287 100644
--- a/views/focus/external_focus_tracker.cc
+++ b/views/focus/external_focus_tracker.cc
@@ -4,6 +4,7 @@
#include "views/focus/external_focus_tracker.h"
+#include "base/logging.h"
#include "views/view.h"
#include "views/focus/view_storage.h"
@@ -13,6 +14,8 @@ ExternalFocusTracker::ExternalFocusTracker(View* parent_view,
FocusManager* focus_manager)
: focus_manager_(focus_manager),
parent_view_(parent_view) {
+ DCHECK(focus_manager);
+ DCHECK(parent_view);
view_storage_ = ViewStorage::GetSharedInstance();
last_focused_view_storage_id_ = view_storage_->CreateStorageID();
// Store the view which is focused when we're created.