| 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_prefs.h" | |
| 11 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/extensions/extension_system.h" | 11 #include "chrome/browser/extensions/extension_system.h" |
| 13 #include "chrome/browser/extensions/extension_util.h" | 12 #include "chrome/browser/extensions/extension_util.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/common/extensions/manifest_url_handler.h" | 14 #include "chrome/common/extensions/manifest_url_handler.h" |
| 15 #include "extensions/browser/extension_prefs.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ExtensionService* ext_service = | 65 ExtensionService* ext_service = |
| 66 ExtensionSystem::Get(GetProfile())->extension_service(); | 66 ExtensionSystem::Get(GetProfile())->extension_service(); |
| 67 const Extension* extension = GetExtension(); | 67 const Extension* extension = GetExtension(); |
| 68 | 68 |
| 69 SetResult(new base::FundamentalValue( | 69 SetResult(new base::FundamentalValue( |
| 70 extension_util::AllowFileAccess(extension, ext_service))); | 70 extension_util::AllowFileAccess(extension, ext_service))); |
| 71 return true; | 71 return true; |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace extensions | 74 } // namespace extensions |
| OLD | NEW |