Index: chrome/common/extensions/extension_set.cc |
diff --git a/chrome/common/extensions/extension_set.cc b/chrome/common/extensions/extension_set.cc |
index 105420bc9605d368c96f8fae11fa6f772e158342..9a716855b0632d7447798d994027cbce4c5a962d 100644 |
--- a/chrome/common/extensions/extension_set.cc |
+++ b/chrome/common/extensions/extension_set.cc |
@@ -46,8 +46,12 @@ const Extension* ExtensionSet::GetByURL(const GURL& url) const { |
ExtensionMap::const_iterator i = extensions_.begin(); |
for (; i != extensions_.end(); ++i) { |
- if (i->second->web_extent().MatchesURL(url)) |
+ // Exclude bookmark apps so that they do not affect the process model. |
+ // TODO(creis): Where is the right place to do this exclusion? |
+ if (i->second->web_extent().MatchesURL(url) && |
+ !i->second->from_bookmark()) { |
return i->second.get(); |
+ } |
} |
return NULL; |