diff --git a/brightray/browser/inspectable_web_contents.cc b/brightray/browser/inspectable_web_contents.cc index 5090011a203d..74aeac671136 100644 --- a/brightray/browser/inspectable_web_contents.cc +++ b/brightray/browser/inspectable_web_contents.cc @@ -2,18 +2,11 @@ #include "browser/inspectable_web_contents_impl.h" -#include "content/public/browser/web_contents_view.h" - namespace brightray { InspectableWebContents* InspectableWebContents::Create( const content::WebContents::CreateParams& create_params) { auto contents = content::WebContents::Create(create_params); -#if defined(OS_MACOSX) - // Work around http://crbug.com/279472. - contents->GetView()->SetAllowOverlappingViews(true); -#endif - return Create(contents); } diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 24dfee3b5206..e8893d5dff4b 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -21,7 +21,6 @@ #include "content/public/browser/devtools_client_host.h" #include "content/public/browser/devtools_http_handler.h" #include "content/public/browser/devtools_manager.h" -#include "content/public/browser/web_contents_view.h" #include "content/public/browser/render_frame_host.h" #include "content/public/browser/render_view_host.h" @@ -152,7 +151,7 @@ void InspectableWebContentsImpl::CloseDevTools() { if (devtools_web_contents_) { view_->CloseDevTools(); devtools_web_contents_.reset(); - web_contents_->GetView()->Focus(); + web_contents_->Focus(); } } diff --git a/brightray/browser/views/inspectable_web_contents_view_views.cc b/brightray/browser/views/inspectable_web_contents_view_views.cc index 4032ef08ece6..e642c48e5b28 100644 --- a/brightray/browser/views/inspectable_web_contents_view_views.cc +++ b/brightray/browser/views/inspectable_web_contents_view_views.cc @@ -3,7 +3,6 @@ #include "browser/inspectable_web_contents_impl.h" #include "base/strings/utf_string_conversions.h" -#include "content/public/browser/web_contents_view.h" #include "ui/views/controls/webview/webview.h" #include "ui/views/widget/widget.h" #include "ui/views/widget/widget_delegate.h"