| 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 599f8c0602eaf77031545202f5b5ec5d768e5d16..359b7c16f8b7017e19c530072a6abb059b7e6a19 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"
 | 
| @@ -560,8 +559,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();
 | 
|    }
 | 
|  }
 | 
| 
 |