Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: extensions/browser/extension_util.cc

Issue 2241203003: Pass user session type to extension feature checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698