| Index: components/guest_view/browser/guest_view_base.cc
|
| diff --git a/components/guest_view/browser/guest_view_base.cc b/components/guest_view/browser/guest_view_base.cc
|
| index ef65c87b59e62022e27855090d757f44ab0ea854..f0bf7415a61780f15f52ad904401b5483a3e75c9 100644
|
| --- a/components/guest_view/browser/guest_view_base.cc
|
| +++ b/components/guest_view/browser/guest_view_base.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "components/guest_view/browser/guest_view_base.h"
|
|
|
| -#include "base/command_line.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "components/guest_view/browser/guest_view_event.h"
|
| @@ -19,7 +18,7 @@
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/render_widget_host_view.h"
|
| #include "content/public/browser/web_contents.h"
|
| -#include "content/public/common/content_switches.h"
|
| +#include "content/public/common/browser_plugin_guest_mode.h"
|
| #include "content/public/common/page_zoom.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| @@ -557,8 +556,7 @@ void GuestViewBase::DidNavigateMainFrame(
|
| // TODO(lazyboy): This breaks guest visibility in --site-per-process because
|
| // we do not take the widget's visibility into account. We need to also
|
| // stay hidden during "visibility:none" state.
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kSitePerProcess)) {
|
| + if (content::BrowserPluginGuestMode::UseCrossProcessFramesForGuests()) {
|
| web_contents()->WasShown();
|
| }
|
| }
|
|
|