From 6dc910cce4694950c3e29275d0eb733d7abfc749 Mon Sep 17 00:00:00 2001 From: "robertshield@chromium.org" Date: Wed, 10 Nov 2010 17:02:19 +0000 Subject: Include the Version class in the 64 bit version of base. This is needed so that it can be used from client_utils.cc which is included in both the chrome target and the chrome_nacl_win64 target. BUG=61609 TEST=None Review URL: http://codereview.chromium.org/4676002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65674 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base.gypi | 4 ++-- base/version.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/base.gypi b/base/base.gypi index ee1f5c9..bca077a4 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -280,6 +280,8 @@ 'utf_string_conversions.h', 'values.cc', 'values.h', + 'version.cc', + 'version.h', 'vlog.cc', 'vlog.h', 'waitable_event.h', @@ -488,8 +490,6 @@ 'sync_socket_posix.cc', 'time_mac.cc', 'time_posix.cc', - 'version.cc', - 'version.h', ], 'conditions': [ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { diff --git a/base/version.cc b/base/version.cc index 9fbcb6a..fe224eb 100644 --- a/base/version.cc +++ b/base/version.cc @@ -63,8 +63,8 @@ int Version::CompareTo(const Version& other) const { const std::string Version::GetString() const { DCHECK(is_valid_); std::string version_str; - int count = components_.size(); - for (int i = 0; i < count - 1; ++i) { + size_t count = components_.size(); + for (size_t i = 0; i < count - 1; ++i) { version_str.append(base::IntToString(components_[i])); version_str.append("."); } -- cgit v1.1