Home | History | Annotate | Download | only in browser

Lines Matching full:extension

10 #include "extensions/common/extension.h"
26 // When the extension was installed.
29 // True if the user has allowed this extension to run in incognito mode.
32 // True if the user has disabled notifications for this extension manually.
47 void InfoMap::AddExtension(const Extension* extension,
52 extensions_.Insert(extension);
53 disabled_extensions_.Remove(extension->id());
55 extra_data_[extension->id()].install_time = install_time;
56 extra_data_[extension->id()].incognito_enabled = incognito_enabled;
57 extra_data_[extension->id()].notifications_disabled = notifications_disabled;
63 const Extension* extension = extensions_.GetByID(extension_id);
67 if (extension) {
69 disabled_extensions_.Insert(extension);
72 // If the extension was uninstalled, make sure it's removed from the map of
78 // disabled extension (e.g., via sync). See
99 bool InfoMap::CanCrossIncognito(const Extension* extension) const {
101 return IsIncognitoEnabled(extension->id()) &&
102 !IncognitoInfo::IsSplitMode(extension);
109 NOTREACHED() << "Duplicate extension process registration for: "
118 NOTREACHED() << "Unknown extension process registration for: "
136 const Extension* extension = extensions_.GetByID(id);
137 if (extension && extension->HasAPIPermission(permission) &&
139 extensions->Insert(extension);