refactor: eliminate brightray (#15240)
This commit is contained in:
parent
1d8ab03146
commit
8ba271efba
47 changed files with 178 additions and 234 deletions
34
atom/common/application_info.cc
Normal file
34
atom/common/application_info.cc
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Copyright (c) 2013 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "atom/common/application_info.h"
|
||||
|
||||
#include "base/no_destructor.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
namespace {
|
||||
|
||||
base::NoDestructor<std::string> g_overridden_application_name;
|
||||
base::NoDestructor<std::string> g_overridden_application_version;
|
||||
|
||||
} // namespace
|
||||
|
||||
// name
|
||||
void OverrideApplicationName(const std::string& name) {
|
||||
*g_overridden_application_name = name;
|
||||
}
|
||||
std::string GetOverriddenApplicationName() {
|
||||
return *g_overridden_application_name;
|
||||
}
|
||||
|
||||
// version
|
||||
void OverrideApplicationVersion(const std::string& version) {
|
||||
*g_overridden_application_version = version;
|
||||
}
|
||||
std::string GetOverriddenApplicationVersion() {
|
||||
return *g_overridden_application_version;
|
||||
}
|
||||
|
||||
} // namespace atom
|
Loading…
Add table
Add a link
Reference in a new issue