diff options
author | robpercival <robpercival@chromium.org> | 2016-01-25 11:39:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-25 19:53:44 +0000 |
commit | dcd8b10251803c2572bb5c45d4535ff19e877a0a (patch) | |
tree | 58cf94b4204d1e202b9324a2cddce94a373ee2e9 /components/component_updater | |
parent | 4738ec3182c62d726a312f0f882d337744d7c015 (diff) | |
download | chromium_src-dcd8b10251803c2572bb5c45d4535ff19e877a0a.zip chromium_src-dcd8b10251803c2572bb5c45d4535ff19e877a0a.tar.gz chromium_src-dcd8b10251803c2572bb5c45d4535ff19e877a0a.tar.bz2 |
Comparison and streaming operators for base::Version
Changes base::Version to comply with updated style guide.
See discussion here:
https://groups.google.com/a/chromium.org/d/topic/chromium-dev/8Q6Po7y0Kc4/discussion
Replaces Version::Equals and Version::IsOlderThan.
Review URL: https://codereview.chromium.org/1575523002
Cr-Commit-Position: refs/heads/master@{#371279}
Diffstat (limited to 'components/component_updater')
-rw-r--r-- | components/component_updater/default_component_installer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/component_updater/default_component_installer.cc b/components/component_updater/default_component_installer.cc index 9e3f34a..659da95 100644 --- a/components/component_updater/default_component_installer.cc +++ b/components/component_updater/default_component_installer.cc @@ -118,7 +118,7 @@ bool DefaultComponentInstaller::Install(const base::DictionaryValue& manifest, bool DefaultComponentInstaller::GetInstalledFile( const std::string& file, base::FilePath* installed_file) { - if (current_version_.Equals(base::Version(kNullVersion))) + if (current_version_ == base::Version(kNullVersion)) return false; // No component has been installed yet. *installed_file = installer_traits_->GetBaseDirectory() |