Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 317823002: Implement NativeViewHostAura::InstallClip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up better Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/native/native_view_host_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index e26c52cd772a3ee9ef318c5189e09d4f81f528e7..29141e59f8319a7a4da724820d9fb79f19e5b960 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -921,7 +921,8 @@ void NativeWidgetAura::OnWindowFocused(aura::Window* gained_focus,
}
delegate_->OnNativeBlur(gained_focus);
- GetWidget()->GetFocusManager()->StoreFocusedView(true);
+ if (GetWidget()->GetFocusManager())
+ GetWidget()->GetFocusManager()->StoreFocusedView(true);
}
}
« no previous file with comments | « ui/views/controls/native/native_view_host_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698