Surface synchronization: Report whether an OOPIF is violating invariants

This CL reports whether an OOPIF is causing invariants violations.

TBR=fsamuel@chromium.org

(cherry picked from commit 8d41aa29fa6b773fbfa4c803e9d96adf2ad739da)

Bug: 791154, 672962
Change-Id: Ida943b8a6bb21cd5baed00bd0065f77e5a358033
Reviewed-on: https://chromium-review.googlesource.com/923041
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Reviewed-by: Fady Samuel <fsamuel@chromium.org>
Reviewed-by: Saman Sami <samans@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#537600}
Reviewed-on: https://chromium-review.googlesource.com/933181
Cr-Commit-Position: refs/branch-heads/3325@{#560}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 2ee0858..5618cc8 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -2713,7 +2713,11 @@
         "surface-invariants-violation", base::debug::CrashKeySize::Size256);
     base::debug::ScopedCrashKeyString key_value(
         crash_key,
-        new_surface_properties.ToDiffString(last_surface_properties_));
+        base::StringPrintf(
+            "[OOPIF? %d] %s\n",
+            view_ && view_->IsRenderWidgetHostViewChildFrame(),
+            new_surface_properties.ToDiffString(last_surface_properties_)
+                .c_str()));
     bad_message::ReceivedBadMessage(
         GetProcess(), bad_message::RWH_SURFACE_INVARIANTS_VIOLATION);
     return;