| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ui_util.h" | 5 #include "chrome/browser/extensions/extension_ui_util.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | |
| 8 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/extensions/extension_constants.h" | 8 #include "chrome/common/extensions/extension_constants.h" |
| 10 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "components/prefs/pref_service.h" |
| 11 #include "extensions/browser/extension_util.h" | 11 #include "extensions/browser/extension_util.h" |
| 12 #include "extensions/common/constants.h" | 12 #include "extensions/common/constants.h" |
| 13 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 bool IsBlockedByPolicy(const Extension* app, content::BrowserContext* context) { | 19 bool IsBlockedByPolicy(const Extension* app, content::BrowserContext* context) { |
| 20 Profile* profile = Profile::FromBrowserContext(context); | 20 Profile* profile = Profile::FromBrowserContext(context); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 return extension->ShouldDisplayInExtensionSettings(); | 51 return extension->ShouldDisplayInExtensionSettings(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool ShouldNotBeVisible(const Extension* extension, | 54 bool ShouldNotBeVisible(const Extension* extension, |
| 55 content::BrowserContext* context) { | 55 content::BrowserContext* context) { |
| 56 return extension->ShouldNotBeVisible(); | 56 return extension->ShouldNotBeVisible(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace ui_util | 59 } // namespace ui_util |
| 60 } // namespace extensions | 60 } // namespace extensions |
| OLD | NEW |