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 "extensions/browser/extension_util.h" | 5 #include "extensions/browser/extension_util.h" |
6 | 6 |
7 #include "extensions/browser/extension_prefs.h" | 7 #include "extensions/browser/extension_prefs.h" |
8 #include "extensions/browser/extension_registry.h" | 8 #include "extensions/browser/extension_registry.h" |
9 #include "extensions/common/manifest_handlers/app_isolation_info.h" | 9 #include "extensions/common/manifest_handlers/app_isolation_info.h" |
10 #include "extensions/common/manifest_handlers/incognito_info.h" | 10 #include "extensions/common/manifest_handlers/incognito_info.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 return extension && AppIsolationInfo::HasIsolatedStorage(extension); | 37 return extension && AppIsolationInfo::HasIsolatedStorage(extension); |
38 } | 38 } |
39 | 39 |
40 bool CanBeIncognitoEnabled(const Extension* extension) { | 40 bool CanBeIncognitoEnabled(const Extension* extension) { |
41 return IncognitoInfo::IsIncognitoAllowed(extension) && | 41 return IncognitoInfo::IsIncognitoAllowed(extension) && |
42 (!extension->is_platform_app() || | 42 (!extension->is_platform_app() || |
43 extension->location() == Manifest::COMPONENT); | 43 extension->location() == Manifest::COMPONENT); |
44 } | 44 } |
45 | 45 |
| 46 Feature::SessionType GetCurrentSessionType() { |
| 47 return Feature::SESSION_TYPE_REGULAR; |
| 48 } |
| 49 |
46 } // namespace util | 50 } // namespace util |
47 } // namespace extensions | 51 } // namespace extensions |
OLD | NEW |