Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1107)

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 1009583004: Add UMA histograms and logging for bad IPC message handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index 6610cb1202c04ab2360021ba4a1df4f4aba3f4ea..6ac51db0406185f26987617b799f931f34c580f0 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -25,6 +25,7 @@
#include "content/browser/site_instance_impl.h"
#include "content/common/frame_messages.h"
#include "content/common/view_messages.h"
+#include "content/public/browser/bad_message.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/invalidate_type.h"
@@ -134,7 +135,7 @@ bool AreURLsInPageNavigation(const GURL& existing_url,
(prefs.allow_universal_access_from_file_urls &&
existing_url.SchemeIs(url::kFileScheme));
if (!is_same_origin && renderer_says_in_page)
- rfh->GetProcess()->ReceivedBadMessage();
+ rfh->GetProcess()->ReceivedBadMessage(BadMessage::NC_IN_PAGE_NAVIGATION);
return is_same_origin && renderer_says_in_page;
}

Powered by Google App Engine
This is Rietveld 408576698