Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5887)

Unified Diff: chrome/browser/extensions/extension_updater.cc

Issue 7820004: extensions: Use Version ctor instead of calling GetVersionFromString(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_updater.cc
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc
index 2bd4e6b22fbd3e3928e1fd7eded5256230d817fe..cdc791a80b8511c6c07009f0dc005c0eedf0f053 100644
--- a/chrome/browser/extensions/extension_updater.cc
+++ b/chrome/browser/extensions/extension_updater.cc
@@ -313,12 +313,10 @@ 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"));
tfarina 2011/08/31 21:18:40 This is a TODO in base/version.cc to remove GetVer
+ Version version("0.0.0.0");
tfarina 2011/08/31 21:18:40 please, check if that is right. Do I need to call
akalin 2011/08/31 21:28:03 I think so. DCHECK(version.IsValid()); should suf
tfarina 2011/08/31 21:35:36 Done.
- 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698