summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_updater.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 23:48:34 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 23:48:34 +0000
commit1952c7d55e5f3cb5d7d75eeab965af32459d2b31 (patch)
treecc32dc77802bbd5b87031a7edb54c936f602d2da /chrome/browser/extensions/extension_updater.cc
parent495839a63f9516e20abbf0ab2258aa5d7dfa7180 (diff)
downloadchromium_src-1952c7d55e5f3cb5d7d75eeab965af32459d2b31.zip
chromium_src-1952c7d55e5f3cb5d7d75eeab965af32459d2b31.tar.gz
chromium_src-1952c7d55e5f3cb5d7d75eeab965af32459d2b31.tar.bz2
Load the bookmark manager extension at Chrome startup.
Review URL: http://codereview.chromium.org/660232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_updater.cc')
-rw-r--r--chrome/browser/extensions/extension_updater.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc
index 8480ac2..96e4282 100644
--- a/chrome/browser/extensions/extension_updater.cc
+++ b/chrome/browser/extensions/extension_updater.cc
@@ -553,6 +553,13 @@ void ExtensionUpdater::CheckNow() {
for (ExtensionList::const_iterator iter = extensions->begin();
iter != extensions->end(); ++iter) {
Extension* extension = (*iter);
+
+ // Only internal and external extensions can be autoupdated.
+ if (extension->location() != Extension::INTERNAL &&
+ !Extension::IsExternalLocation(extension->location())) {
+ continue;
+ }
+
const GURL& update_url = extension->update_url();
// Collect histogram data and skip extensions with no update url.