Lines Matching full:version
19 #include "base/version.h"
31 // This should be more than enough to hold a version string assuming each part
32 // of the version string is an int64.
42 // version. The name is not versioned.
56 std::string version; in GetServiceProcessRunningState() local
57 if (!GetServiceProcessData(&version, pid_out)) in GetServiceProcessRunningState()
69 // At this time we have a version string. Set the out param if it exists. in GetServiceProcessRunningState()
71 *service_version_out = version; in GetServiceProcessRunningState()
73 scoped_ptr<Version> service_version(Version::GetVersionFromString(version)); in GetServiceProcessRunningState()
74 // If the version string is invalid, treat it like an older version. in GetServiceProcessRunningState()
78 // Get the version of the currently *running* instance of Chrome. in GetServiceProcessRunningState()
81 NOTREACHED() << "Failed to get current file version"; in GetServiceProcessRunningState()
82 // Our own version is invalid. This is an error case. Pretend that we in GetServiceProcessRunningState()
86 scoped_ptr<Version> running_version(Version::GetVersionFromString( in GetServiceProcessRunningState()
87 version_info.Version())); in GetServiceProcessRunningState()
89 NOTREACHED() << "Failed to parse version info"; in GetServiceProcessRunningState()
90 // Our own version is invalid. This is an error case. Pretend that we in GetServiceProcessRunningState()
122 // use the user-data-dir and the version as a scoping prefix.
128 versioned_str.append(version_info.Version()); in GetServiceProcessScopedVersionedName()
135 bool GetServiceProcessData(std::string* version, base::ProcessId* pid) { in GetServiceProcessData() argument
144 // Make sure the version in shared memory is null-terminated. If it is not, in GetServiceProcessData()
146 if (version && memchr(service_data->service_process_version, '\0', in GetServiceProcessData()
148 *version = service_data->service_process_version; in GetServiceProcessData()
187 // Now that we have the singleton, take care of killing an older version, if in Initialize()
192 // Write the version we are using to shared memory. This can be used by a in Initialize()
207 // If an older version is running, kill it. in HandleOtherVersion()
219 NOTREACHED() << "Failed to get current file version"; in CreateSharedData()
222 if (version_info.Version().length() >= kMaxVersionStringLength) { in CreateSharedData()
223 NOTREACHED() << "Version string length is << " << in CreateSharedData()
224 version_info.Version().length() << "which is longer than" << in CreateSharedData()
246 memcpy(shared_data->service_process_version, version_info.Version().c_str(), in CreateSharedData()
247 version_info.Version().length()); in CreateSharedData()