| Index: chrome/common/channel_info.cc
|
| diff --git a/chrome/common/channel_info.cc b/chrome/common/channel_info.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a313e32e61f70ca5f5f60137abbfa40b090d22e1
|
| --- /dev/null
|
| +++ b/chrome/common/channel_info.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/common/channel_info.h"
|
| +
|
| +#include "base/profiler/scoped_tracker.h"
|
| +#include "build/build_config.h"
|
| +#include "chrome/grit/chromium_strings.h"
|
| +#include "chrome/grit/generated_resources.h"
|
| +#include "components/version_info/version_info.h"
|
| +#include "ui/base/l10n/l10n_util.h"
|
| +
|
| +namespace chrome {
|
| +
|
| +std::string GetVersionString() {
|
| + // TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is
|
| + // fixed.
|
| + tracked_objects::ScopedTracker tracking_profile(
|
| + FROM_HERE_WITH_EXPLICIT_FUNCTION(
|
| + "422460 VersionInfo::CreateVersionString"));
|
| +
|
| + return version_info::GetVersionStringWithModifier(GetChannelString());
|
| +}
|
| +
|
| +} // namespace chrome
|
|
|