summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extensions_service.cc')
-rw-r--r--chrome/browser/extensions/extensions_service.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 7f2eb05..fe04e77 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -370,9 +370,9 @@ void ExtensionsService::OnExternalExtensionFound(const std::string& id,
// version. This is important because these extensions are going to get
// installed on every startup.
Extension* existing = GetExtensionById(id);
+ scoped_ptr<Version> other(Version::GetVersionFromString(version));
if (existing) {
- switch (existing->version()->CompareTo(
- *Version::GetVersionFromString(version))) {
+ switch (existing->version()->CompareTo(*other)) {
case -1: // existing version is older, we should upgrade
break;
case 0: // existing version is same, do nothing