electron/brightray/common/application_info.cc
Aleksei Kuzmin 7fc3bcaa02 chore: run clang-format
- atom/
 - brightray/
 - chromium_src/
2018-09-19 17:18:10 +02:00

30 lines
703 B
C++

#include "brightray/common/application_info.h"
#include "base/no_destructor.h"
namespace brightray {
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 brightray