| 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 FeatureSessionType GetCurrentSessionType() { |
| 47 // TODO(tbarzic): Implement this. |
| 48 return FEATURE_SESSION_TYPE_REGULAR; |
| 49 } |
| 50 |
| 46 } // namespace util | 51 } // namespace util |
| 47 } // namespace extensions | 52 } // namespace extensions |
| OLD | NEW |