electron/brightray/common/application_info.cc
Charles Kerr 8d086a43cb
Fix brightray::GetApplicationName(), ..Version() on Linux (#11980)
* add brightray API to override app version

* in atom browser, use brightray app version API

* on Linux, have GetApplicationVersion() use brightray version API

* on Linux, implement brightray::GetApplicationName()

* fix typo in brightray API

* make browser.GetName() logic follow GetVersion() logic

* improve variable name in OverrideApplicationVersion declaration

* fix typo in brightray impl
2018-02-20 10:16:51 -06:00

26 lines
593 B
C++

#include "brightray/common/application_info.h"
namespace brightray {
namespace {
std::string g_overridden_application_name;
std::string g_overridden_application_version;
}
void OverrideApplicationName(const std::string& name) {
g_overridden_application_name = name;
}
std::string GetOverriddenApplicationName() {
return g_overridden_application_name;
}
void OverrideApplicationVersion(const std::string& version) {
g_overridden_application_version = version;
}
std::string GetOverriddenApplicationVersion() {
return g_overridden_application_version;
}
} // namespace brightray