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

Side by Side Diff: extensions/browser/management_policy.cc

Issue 82773002: Move some dependencies of ExtensionService down to extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Presubmit check fixed Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/extensions/management_policy.h" 5 #include "extensions/browser/management_policy.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace { 9 namespace {
10 10
11 void GetExtensionNameAndId(const Extension* extension, 11 void GetExtensionNameAndId(const Extension* extension,
12 std::string* name, 12 std::string* name,
13 std::string* id) { 13 std::string* id) {
14 // The extension may be NULL in testing. 14 // The extension may be NULL in testing.
15 *id = extension ? extension->id() : "[test]"; 15 *id = extension ? extension->id() : "[test]";
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 DVLOG(1) << debug_operation_name << " of extension " << name 107 DVLOG(1) << debug_operation_name << " of extension " << name
108 << " (" << id << ")" 108 << " (" << id << ")"
109 << " prohibited by " << provider->GetDebugPolicyProviderName(); 109 << " prohibited by " << provider->GetDebugPolicyProviderName();
110 return !normal_result; 110 return !normal_result;
111 } 111 }
112 } 112 }
113 return normal_result; 113 return normal_result;
114 } 114 }
115 115
116 } // namespace extensions 116 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/management_policy.h ('k') | extensions/browser/management_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698