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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_util.h" | 12 #include "chrome/browser/extensions/extension_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "extensions/browser/extension_prefs.h" | 14 #include "extensions/browser/extension_prefs.h" |
15 #include "extensions/browser/extension_system.h" | 15 #include "extensions/browser/extension_system.h" |
| 16 #include "extensions/browser/extension_util.h" |
16 #include "extensions/common/manifest_url_handlers.h" | 17 #include "extensions/common/manifest_url_handlers.h" |
17 | 18 |
18 namespace extensions { | 19 namespace extensions { |
19 | 20 |
20 namespace extension { | 21 namespace extension { |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
24 // A preference for storing the extension's update URL data. If not empty, the | 25 // A preference for storing the extension's update URL data. If not empty, the |
25 // the ExtensionUpdater will append a ap= parameter to the URL when checking if | 26 // the ExtensionUpdater will append a ap= parameter to the URL when checking if |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 util::IsIncognitoEnabled(extension_id(), browser_context())))); | 58 util::IsIncognitoEnabled(extension_id(), browser_context())))); |
58 } | 59 } |
59 | 60 |
60 ExtensionFunction::ResponseAction | 61 ExtensionFunction::ResponseAction |
61 ExtensionIsAllowedFileSchemeAccessFunction::Run() { | 62 ExtensionIsAllowedFileSchemeAccessFunction::Run() { |
62 return RespondNow(OneArgument(base::MakeUnique<base::Value>( | 63 return RespondNow(OneArgument(base::MakeUnique<base::Value>( |
63 util::AllowFileAccess(extension_id(), browser_context())))); | 64 util::AllowFileAccess(extension_id(), browser_context())))); |
64 } | 65 } |
65 | 66 |
66 } // namespace extensions | 67 } // namespace extensions |
OLD | NEW |