1 // Copyright 2017 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/version_info/version_string.h" 6 7 #include "base/version_info/version_info.h" 8 9 namespace version_info { 10 GetVersionStringWithModifier(const std::string & modifier)11std::string GetVersionStringWithModifier(const std::string& modifier) { 12 std::string current_version; 13 current_version += GetVersionNumber(); 14 #if defined(USE_UNOFFICIAL_VERSION_NUMBER) 15 current_version += " (Developer Build "; 16 current_version += GetLastChange(); 17 current_version += " "; 18 current_version += GetOSType(); 19 current_version += ")"; 20 #endif // USE_UNOFFICIAL_VERSION_NUMBER 21 if (!modifier.empty()) { 22 current_version += " " + modifier; 23 } 24 return current_version; 25 } 26 27 } // namespace version_info 28