Adapt to changes of Chrome 51 API changes
This commit is contained in:
parent
e7be3d0ef9
commit
851ef398fb
39 changed files with 157 additions and 196 deletions
|
@ -1,21 +1,20 @@
|
|||
#include "common/application_info.h"
|
||||
|
||||
#include "base/file_version_info.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
std::string GetApplicationName() {
|
||||
auto module = GetModuleHandle(nullptr);
|
||||
auto info = make_scoped_ptr(
|
||||
auto info = make_std::unique_ptr(
|
||||
FileVersionInfo::CreateFileVersionInfoForModule(module));
|
||||
return base::UTF16ToUTF8(info->product_name());
|
||||
}
|
||||
|
||||
std::string GetApplicationVersion() {
|
||||
auto module = GetModuleHandle(nullptr);
|
||||
auto info = make_scoped_ptr(
|
||||
auto info = make_std::unique_ptr(
|
||||
FileVersionInfo::CreateFileVersionInfoForModule(module));
|
||||
return base::UTF16ToUTF8(info->product_version());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue