| Index: content/shell/browser/layout_test/layout_test_permission_manager.h
|
| diff --git a/content/shell/browser/layout_test/layout_test_permission_manager.h b/content/shell/browser/layout_test/layout_test_permission_manager.h
|
| index e1cf5c177fda9a01416649b5ce80bd0772022143..9c0461f7788d6aa3f6a8a70f9a36408dd6ba40cc 100644
|
| --- a/content/shell/browser/layout_test/layout_test_permission_manager.h
|
| +++ b/content/shell/browser/layout_test/layout_test_permission_manager.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/callback_forward.h"
|
| #include "base/containers/hash_tables.h"
|
| #include "base/macros.h"
|
| +#include "base/synchronization/lock.h"
|
| #include "content/public/browser/permission_manager.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -74,6 +75,10 @@ class LayoutTestPermissionManager : public PermissionManager {
|
| PermissionStatus,
|
| PermissionDescription::Hash>;
|
|
|
| + // Mutex for permissions access. Unfortunately, the permissions can be
|
| + // accessed from the IO thread because of Notifications' synchronous IPC.
|
| + base::Lock permissions_lock_;
|
| +
|
| // List of permissions currently known by the LayoutTestPermissionManager and
|
| // their associated |PermissionStatus|.
|
| PermissionsMap permissions_;
|
|
|