diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 15:41:57 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 15:41:57 +0000 |
commit | 841c84197cb9a0bd794a4eb56a02ae1f6d9c5014 (patch) | |
tree | 8a84f809eea870ee93538f1a18c6ece9a7a713f7 /chrome | |
parent | 5a5d97aa22829130bad6a4d24ebddf4ff262b704 (diff) | |
download | chromium_src-841c84197cb9a0bd794a4eb56a02ae1f6d9c5014.zip chromium_src-841c84197cb9a0bd794a4eb56a02ae1f6d9c5014.tar.gz chromium_src-841c84197cb9a0bd794a4eb56a02ae1f6d9c5014.tar.bz2 |
extensions: Use Version ctor instead of calling GetVersionFromString().
BUG=None
TEST=None
R=cpu@chromium.org,akalin@chromium.org
Review URL: http://codereview.chromium.org/7820004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/extensions/extension_updater.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc index 2bd4e6b..2959077 100644 --- a/chrome/browser/extensions/extension_updater.cc +++ b/chrome/browser/extensions/extension_updater.cc @@ -313,12 +313,11 @@ void ManifestFetchesBuilder::AddPendingExtension( // Use a zero version to ensure that a pending extension will always // be updated, and thus installed (assuming all extensions have // non-zero versions). - scoped_ptr<Version> version( - Version::GetVersionFromString("0.0.0.0")); + Version version("0.0.0.0"); + DCHECK(version.IsValid()); - AddExtensionData( - info.install_source(), id, *version, - Extension::TYPE_UNKNOWN, info.update_url(), ""); + AddExtensionData(info.install_source(), id, version, + Extension::TYPE_UNKNOWN, info.update_url(), ""); } void ManifestFetchesBuilder::ReportStats() const { |