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

Side by Side Diff: chrome/common/pepper_permission_util.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 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/common/pepper_permission_util.h" 5 #include "chrome/common/pepper_permission_util.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/sha1.h" 10 #include "base/sha1.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_tokenizer.h" 12 #include "base/strings/string_tokenizer.h"
13 #include "chrome/common/extensions/extension_set.h" 13 #include "chrome/common/extensions/extension_set.h"
14 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h"
15 #include "extensions/common/constants.h" 14 #include "extensions/common/constants.h"
16 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
16 #include "extensions/common/manifest_handlers/shared_module_info.h"
17 17
18 using extensions::Extension; 18 using extensions::Extension;
19 using extensions::Manifest; 19 using extensions::Manifest;
20 20
21 namespace chrome { 21 namespace chrome {
22 22
23 namespace { 23 namespace {
24 24
25 std::string HashHost(const std::string& host) { 25 std::string HashHost(const std::string& host) {
26 const std::string id_hash = base::SHA1HashString(host); 26 const std::string id_hash = base::SHA1HashString(host);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 base::StringTokenizer t(allowed_list, ","); 96 base::StringTokenizer t(allowed_list, ",");
97 while (t.GetNext()) { 97 while (t.GetNext()) {
98 if (t.token() == host) 98 if (t.token() == host)
99 return true; 99 return true;
100 } 100 }
101 101
102 return false; 102 return false;
103 } 103 }
104 104
105 } // namespace chrome 105 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/extensions/manifest_handlers/shared_module_manifest_unittest.cc ('k') | extensions/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698