Index: components/nacl/browser/bad_message.cc |
diff --git a/content/browser/bad_message.cc b/components/nacl/browser/bad_message.cc |
similarity index 51% |
copy from content/browser/bad_message.cc |
copy to components/nacl/browser/bad_message.cc |
index cc41b00bd82fce643d63931134ee855ccb0a1e42..950574e53b5c063b1ed0b2d4dfa54bbb00c0571c 100644 |
--- a/content/browser/bad_message.cc |
+++ b/components/nacl/browser/bad_message.cc |
@@ -1,22 +1,23 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "content/browser/bad_message.h" |
- |
-#include "base/logging.h" |
-#include "base/metrics/histogram_macros.h" |
-#include "content/public/browser/render_process_host.h" |
- |
-namespace content { |
-namespace bad_message { |
- |
-void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason) { |
- LOG(ERROR) << "Terminating renderer for bad IPC message, reason " << reason; |
- UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.Content", reason, |
- BAD_MESSAGE_MAX); |
- host->ShutdownForBadMessage(); |
-} |
- |
-} // namespace bad_message |
-} // namespace content |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/nacl/browser/bad_message.h" |
+ |
+#include "base/logging.h" |
+#include "base/metrics/histogram_macros.h" |
+#include "content/public/browser/browser_message_filter.h" |
+ |
+namespace nacl { |
+namespace bad_message { |
+ |
+void ReceivedBadMessage(content::BrowserMessageFilter* filter, |
+ BadMessageReason reason) { |
+ LOG(ERROR) << "Terminating renderer for bad IPC message, reason " << reason; |
+ UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.NaCl", reason, |
+ BAD_MESSAGE_MAX); |
+ filter->ShutdownForBadMessage(); |
+} |
+ |
+} // namespace bad_message |
+} // namespace nacl |