Chromium Code Reviews| 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. |