| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 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 "chrome/common/chrome_version_info.h" | |
| 6 | |
| 7 #include "base/profiler/scoped_tracker.h" | |
| 8 #include "build/build_config.h" | |
| 9 #include "chrome/grit/chromium_strings.h" | |
| 10 #include "chrome/grit/generated_resources.h" | |
| 11 #include "ui/base/l10n/l10n_util.h" | |
| 12 | |
| 13 namespace chrome { | |
| 14 | |
| 15 VersionInfo::VersionInfo() { | |
| 16 } | |
| 17 | |
| 18 VersionInfo::~VersionInfo() { | |
| 19 } | |
| 20 | |
| 21 // static | |
| 22 std::string VersionInfo::ProductNameAndVersionForUserAgent() { | |
| 23 return version_info::GetProductNameAndVersionForUserAgent(); | |
| 24 } | |
| 25 | |
| 26 // static | |
| 27 std::string VersionInfo::Name() { | |
| 28 return version_info::GetProductName(); | |
| 29 } | |
| 30 | |
| 31 // static | |
| 32 std::string VersionInfo::Version() { | |
| 33 return version_info::GetVersionNumber(); | |
| 34 } | |
| 35 | |
| 36 // static | |
| 37 std::string VersionInfo::LastChange() { | |
| 38 return version_info::GetLastChange(); | |
| 39 } | |
| 40 | |
| 41 // static | |
| 42 bool VersionInfo::IsOfficialBuild() { | |
| 43 return version_info::IsOfficialBuild(); | |
| 44 } | |
| 45 | |
| 46 // static | |
| 47 std::string VersionInfo::OSType() { | |
| 48 return version_info::GetOSType(); | |
| 49 } | |
| 50 | |
| 51 // static | |
| 52 std::string VersionInfo::GetChannelString() { | |
| 53 return version_info::GetChannelString(GetChannel()); | |
| 54 } | |
| 55 | |
| 56 // static | |
| 57 std::string VersionInfo::CreateVersionString() { | |
| 58 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is | |
| 59 // fixed. | |
| 60 tracked_objects::ScopedTracker tracking_profile( | |
| 61 FROM_HERE_WITH_EXPLICIT_FUNCTION( | |
| 62 "422460 VersionInfo::CreateVersionString")); | |
| 63 | |
| 64 return version_info::GetVersionStringWithModifier(GetVersionStringModifier()); | |
| 65 } | |
| 66 | |
| 67 } // namespace chrome | |
| OLD | NEW |