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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 331743004: Always enable enhanced bookmarks external component extensions for incognito mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: set incognito pref on install Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 5159162fde6450e19efb907f8514f927504aca13..82df86b1471151f16070f43140e91bdf1c363860 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -540,6 +540,12 @@ class ExtensionService
const extensions::ExtensionIdSet& unchanged,
const extensions::Blacklist::BlacklistStateMap& state_map);
+ // Helper to determine if the the extension should be enabled by default for
+ // incognito mode. This is permitted for selected external component
+ // extensions. (Internal component extensions are enabled in incognito by
+ // default.)
+ static bool ShouldEnableForIncognito(const extensions::Extension* extension);
+
// Used only by test code.
void UnloadAllExtensionsInternal();
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698