summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/webview/webview.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/controls/webview/webview.cc')
-rw-r--r--ui/views/controls/webview/webview.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index 4de68b5..4234a8c 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -62,11 +62,8 @@ void WebView::SetFastResize(bool fast_resize) {
void WebView::OnWebContentsFocused(content::WebContents* web_contents) {
DCHECK(web_contents == web_contents_);
FocusManager* focus_manager = GetFocusManager();
- if (!focus_manager) {
- NOTREACHED();
- return;
- }
- focus_manager->SetFocusedView(this);
+ if (focus_manager)
+ focus_manager->SetFocusedView(this);
}
////////////////////////////////////////////////////////////////////////////////
@@ -179,7 +176,7 @@ void WebView::AttachWebContents() {
void WebView::DetachWebContents() {
if (web_contents_) {
wcv_holder_->Detach();
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
// TODO(beng): This should either not be necessary, or be done implicitly by
// NativeViewHostWin on Detach(). As it stands, this is needed
// so that the view of the detached contents knows to tell the