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/channel_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 "components/version_info/version_info.h" |
| 12 #include "ui/base/l10n/l10n_util.h" |
| 13 |
| 14 namespace chrome { |
| 15 |
| 16 std::string GetVersionString() { |
| 17 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is |
| 18 // fixed. |
| 19 tracked_objects::ScopedTracker tracking_profile( |
| 20 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| 21 "422460 VersionInfo::CreateVersionString")); |
| 22 |
| 23 return version_info::GetVersionStringWithModifier(GetChannelString()); |
| 24 } |
| 25 |
| 26 } // namespace chrome |
OLD | NEW |