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

Unified Diff: components/variations/service/variations_service.cc

Issue 1575523002: Comparison and streaming operators for base::Version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: components/variations/service/variations_service.cc
diff --git a/components/variations/service/variations_service.cc b/components/variations/service/variations_service.cc
index 3d41ce3c7643455d971fba59b1625bf29c4af07b..c68176ea9cfbf05c663e244e1d8f7c8f3e834bd4 100644
--- a/components/variations/service/variations_service.cc
+++ b/components/variations/service/variations_service.cc
@@ -799,7 +799,7 @@ std::string VariationsService::LoadPermanentConsistencyCountry(
// Determine if the version from the saved pref matches |version|.
const bool does_version_match =
- is_pref_valid && version.Equals(base::Version(stored_version_string));
+ is_pref_valid && version == base::Version(stored_version_string);
// Determine if the country in the saved pref matches the country in
// |latest_country|.

Powered by Google App Engine
This is Rietveld 408576698