Index: components/password_manager/content/browser/bad_message.cc |
diff --git a/extensions/browser/bad_message.cc b/components/password_manager/content/browser/bad_message.cc |
similarity index 56% |
copy from extensions/browser/bad_message.cc |
copy to components/password_manager/content/browser/bad_message.cc |
index 85ce5d61899d5beb5df54261c4ee330413cd7647..6b317c53b9d644bd58248918abb9f99d30fc1888 100644 |
--- a/extensions/browser/bad_message.cc |
+++ b/components/password_manager/content/browser/bad_message.cc |
@@ -2,23 +2,24 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "extensions/browser/bad_message.h" |
+#include "components/password_manager/content/browser/bad_message.h" |
#include "base/logging.h" |
#include "base/metrics/histogram_macros.h" |
#include "content/public/browser/render_process_host.h" |
-namespace extensions { |
+namespace password_manager { |
namespace bad_message { |
void ReceivedBadMessage(content::RenderProcessHost* host, |
BadMessageReason reason) { |
- LOG(ERROR) << "Terminating extension renderer for bad IPC message, reason " |
- << reason; |
- UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.Extensions", reason, |
- BAD_MESSAGE_MAX); |
+ LOG(ERROR) |
vabr (Chromium)
2015/07/08 08:26:27
nit: Please make this a VLOG at least, to allow mo
lfg
2015/07/08 15:31:47
I believe this is one of the rare cases that we ne
vabr (Chromium)
2015/07/09 06:29:32
Fair enough about the release builds, but still, p
|
+ << "Terminating renderer for bad PasswordManager IPC message, reason " |
+ << reason; |
+ UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.PasswordManager", |
+ reason, BAD_MESSAGE_MAX + 1); |
ncarter (slow)
2015/07/07 22:18:32
Do we really need the +1?
lfg
2015/07/08 15:31:47
Yes, it was needed because histograms don't work w
|
host->ShutdownForBadMessage(); |
} |
} // namespace bad_message |
-} // namespace extensions |
+} // namespace password_manager |