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

Side by Side Diff: chrome/renderer/extensions/renderer_permissions_policy_delegate.cc

Issue 23744004: Move the rest of extension_manifest_constants to top-level extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 7 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/renderer_permissions_policy_delegate.h" 5 #include "chrome/renderer/extensions/renderer_permissions_policy_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/extensions/extension_constants.h" 9 #include "chrome/common/extensions/extension_constants.h"
10 #include "chrome/common/extensions/extension_manifest_constants.h"
11 #include "chrome/renderer/extensions/dispatcher.h" 10 #include "chrome/renderer/extensions/dispatcher.h"
11 #include "extensions/common/manifest_constants.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 namespace errors = extension_manifest_errors; 15 namespace errors = manifest_errors;
16 16
17 RendererPermissionsPolicyDelegate::RendererPermissionsPolicyDelegate( 17 RendererPermissionsPolicyDelegate::RendererPermissionsPolicyDelegate(
18 Dispatcher* dispatcher) : dispatcher_(dispatcher) { 18 Dispatcher* dispatcher) : dispatcher_(dispatcher) {
19 PermissionsData::SetPolicyDelegate(this); 19 PermissionsData::SetPolicyDelegate(this);
20 } 20 }
21 RendererPermissionsPolicyDelegate::~RendererPermissionsPolicyDelegate() { 21 RendererPermissionsPolicyDelegate::~RendererPermissionsPolicyDelegate() {
22 PermissionsData::SetPolicyDelegate(NULL); 22 PermissionsData::SetPolicyDelegate(NULL);
23 } 23 }
24 24
25 bool RendererPermissionsPolicyDelegate::CanExecuteScriptOnPage( 25 bool RendererPermissionsPolicyDelegate::CanExecuteScriptOnPage(
(...skipping 20 matching lines...) Expand all
46 if (dispatcher_->IsExtensionActive(extension_misc::kWebStoreAppId)) { 46 if (dispatcher_->IsExtensionActive(extension_misc::kWebStoreAppId)) {
47 if (error) 47 if (error)
48 *error = errors::kCannotScriptGallery; 48 *error = errors::kCannotScriptGallery;
49 return false; 49 return false;
50 } 50 }
51 51
52 return true; 52 return true;
53 } 53 }
54 54
55 } // namespace extensions 55 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/extensions/user_script_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698