1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/browser_permissions_policy_delegate.h"
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "content/public/browser/browser_thread.h"
11 #include "extensions/common/manifest_constants.h"
13 namespace extensions
{
15 namespace errors
= manifest_errors
;
17 BrowserPermissionsPolicyDelegate::BrowserPermissionsPolicyDelegate() {
18 PermissionsData::SetPolicyDelegate(this);
20 BrowserPermissionsPolicyDelegate::~BrowserPermissionsPolicyDelegate() {
21 PermissionsData::SetPolicyDelegate(NULL
);
24 bool BrowserPermissionsPolicyDelegate::CanExecuteScriptOnPage(
25 const Extension
* extension
,
26 const GURL
& document_url
,
30 DCHECK_CURRENTLY_ON(content::BrowserThread::UI
);
34 } // namespace extensions