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 71747bd58c405988fe9ecdaad5ba81df2d063eeb..41894f4ed2801ff357da8fad858b0c9bdcdf28ad 100644 |
--- a/components/guest_view/browser/guest_view_base.cc |
+++ b/components/guest_view/browser/guest_view_base.cc |
@@ -149,7 +149,7 @@ class GuestViewBase::OwnerContentsObserver : public WebContentsObserver { |
// WebContents goes away before the GuestViewBase is attached. |
class GuestViewBase::OpenerLifetimeObserver : public WebContentsObserver { |
public: |
- OpenerLifetimeObserver(GuestViewBase* guest) |
+ explicit OpenerLifetimeObserver(GuestViewBase* guest) |
: WebContentsObserver(guest->GetOpener()->web_contents()), |
guest_(guest) {} |
@@ -674,9 +674,7 @@ bool GuestViewBase::ShouldFocusPageAfterCrash() { |
bool GuestViewBase::PreHandleGestureEvent(WebContents* source, |
const blink::WebGestureEvent& event) { |
- return event.GetType() == blink::WebGestureEvent::kGesturePinchBegin || |
- event.GetType() == blink::WebGestureEvent::kGesturePinchUpdate || |
- event.GetType() == blink::WebGestureEvent::kGesturePinchEnd; |
+ return blink::WebInputEvent::IsPinchGestureEventType(event.GetType()); |
} |
void GuestViewBase::UpdatePreferredSize(WebContents* target_web_contents, |