OLD | NEW |
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/api/module/module.h" | 5 #include "chrome/browser/extensions/api/module/module.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/extensions/extension_system.h" | |
12 #include "chrome/browser/extensions/extension_util.h" | 11 #include "chrome/browser/extensions/extension_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/extensions/manifest_url_handler.h" | 13 #include "chrome/common/extensions/manifest_url_handler.h" |
15 #include "extensions/browser/extension_prefs.h" | 14 #include "extensions/browser/extension_prefs.h" |
| 15 #include "extensions/browser/extension_system.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 namespace extension { | 19 namespace extension { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // A preference for storing the extension's update URL data. If not empty, the | 23 // A preference for storing the extension's update URL data. If not empty, the |
24 // the ExtensionUpdater will append a ap= parameter to the URL when checking if | 24 // the ExtensionUpdater will append a ap= parameter to the URL when checking if |
25 // a new version of the extension is available. | 25 // a new version of the extension is available. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 return true; | 57 return true; |
58 } | 58 } |
59 | 59 |
60 bool ExtensionIsAllowedFileSchemeAccessFunction::RunImpl() { | 60 bool ExtensionIsAllowedFileSchemeAccessFunction::RunImpl() { |
61 SetResult(new base::FundamentalValue( | 61 SetResult(new base::FundamentalValue( |
62 util::AllowFileAccess(extension_id(), GetProfile()))); | 62 util::AllowFileAccess(extension_id(), GetProfile()))); |
63 return true; | 63 return true; |
64 } | 64 } |
65 | 65 |
66 } // namespace extensions | 66 } // namespace extensions |
OLD | NEW |