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.
5 #include "chrome/common/channel_info.h"
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"
16 std::string
GetVersionString() {
17 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is
19 tracked_objects::ScopedTracker
tracking_profile(
20 FROM_HERE_WITH_EXPLICIT_FUNCTION(
21 "422460 VersionInfo::CreateVersionString"));
23 return version_info::GetVersionStringWithModifier(GetChannelString());