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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 1855383002: Add DumpWithoutCrashing to RenderFrameMessageFilter cookie kills (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@doghouse_now
Patch Set: Rebase / fix merge conficts Created 4 years, 8 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/child_process_security_policy_impl.cc
diff --git a/content/browser/child_process_security_policy_impl.cc b/content/browser/child_process_security_policy_impl.cc
index 3c03213ae8c07c8372e34e432c28e9ed3480e218..ee349ed47732d0dfabac1359c39a4a87f5e9dab6 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -238,6 +238,11 @@ class ChildProcessSecurityPolicyImpl::SecurityState {
return origin_lock_ == site_gurl;
}
+ // TODO(nick): Remove this once we understand http://crbug.com/600441
+ GURL GetOriginLock() {
+ return origin_lock_;
+ }
+
void LockToOrigin(const GURL& gurl) {
origin_lock_ = gurl;
}
@@ -823,6 +828,17 @@ bool ChildProcessSecurityPolicyImpl::CanAccessDataForOrigin(int child_id,
return state->second->CanAccessDataForOrigin(gurl);
}
+// TODO(nick): Remove this once we understand http://crbug.com/600441
+scoped_ptr<base::debug::ScopedCrashKey>
+ChildProcessSecurityPolicyImpl::GetOriginLockCrashKey(int child_id) {
+ base::AutoLock lock(lock_);
+ SecurityStateMap::iterator state = security_state_.find(child_id);
+ return make_scoped_ptr(new base::debug::ScopedCrashKey(
+ "policy_origin_lock", state == security_state_.end()
Avi (use Gerrit) 2016/04/05 01:41:23 The key constant in the crash keys file is "securi
ncarter (slow) 2016/05/03 00:16:01 Done. Good catch, thanks!
+ ? "not-found"
+ : state->second->GetOriginLock().spec()));
+}
+
void ChildProcessSecurityPolicyImpl::LockToOrigin(int child_id,
const GURL& gurl) {
// "gurl" can be currently empty in some cases, such as file://blah.
« no previous file with comments | « content/browser/child_process_security_policy_impl.h ('k') | content/browser/frame_host/render_frame_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698