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

Unified Diff: components/password_manager/content/browser/bad_message.cc

Issue 1212163007: Kill renderers for bad password forms in --site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding test, bad message Created 5 years, 5 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: 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

Powered by Google App Engine
This is Rietveld 408576698