OLD | NEW |
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/browser/extensions/extension_util.h" | 5 #include "chrome/browser/extensions/extension_util.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/extension_sync_service.h" | 10 #include "chrome/browser/extensions/extension_sync_service.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/extensions/extension.h" | |
13 #include "chrome/common/extensions/sync_helper.h" | 12 #include "chrome/common/extensions/sync_helper.h" |
| 13 #include "extensions/common/extension.h" |
14 #include "extensions/common/manifest.h" | 14 #include "extensions/common/manifest.h" |
15 #include "extensions/common/manifest_handlers/incognito_info.h" | 15 #include "extensions/common/manifest_handlers/incognito_info.h" |
16 | 16 |
17 using extensions::Extension; | 17 using extensions::Extension; |
18 using extensions::ExtensionPrefs; | 18 using extensions::ExtensionPrefs; |
19 | 19 |
20 namespace extension_util { | 20 namespace extension_util { |
21 | 21 |
22 bool IsIncognitoEnabled(const std::string& extension_id, | 22 bool IsIncognitoEnabled(const std::string& extension_id, |
23 const ExtensionService* service) { | 23 const ExtensionService* service) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return; | 118 return; |
119 | 119 |
120 service->extension_prefs()->SetAllowFileAccess(extension->id(), allow); | 120 service->extension_prefs()->SetAllowFileAccess(extension->id(), allow); |
121 | 121 |
122 bool extension_is_enabled = service->extensions()->Contains(extension->id()); | 122 bool extension_is_enabled = service->extensions()->Contains(extension->id()); |
123 if (extension_is_enabled) | 123 if (extension_is_enabled) |
124 service->ReloadExtension(extension->id()); | 124 service->ReloadExtension(extension->id()); |
125 } | 125 } |
126 | 126 |
127 } // namespace extension_util | 127 } // namespace extension_util |
OLD | NEW |