mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Fix compilation errors on Linux
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#ifndef BROWSER_DEVTOOLS_NETWORK_CONTROLLER_HANDLE_H_
|
||||
#define BROWSER_DEVTOOLS_NETWORK_CONTROLLER_HANDLE_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <memory>
|
||||
|
||||
#include "common/application_info.h"
|
||||
|
||||
#include "base/file_version_info.h"
|
||||
@@ -7,14 +9,14 @@ namespace brightray {
|
||||
|
||||
std::string GetApplicationName() {
|
||||
auto module = GetModuleHandle(nullptr);
|
||||
auto info = make_std::unique_ptr(
|
||||
std::unique_ptr<FileVersionInfo> info(
|
||||
FileVersionInfo::CreateFileVersionInfoForModule(module));
|
||||
return base::UTF16ToUTF8(info->product_name());
|
||||
}
|
||||
|
||||
std::string GetApplicationVersion() {
|
||||
auto module = GetModuleHandle(nullptr);
|
||||
auto info = make_std::unique_ptr(
|
||||
std::unique_ptr<FileVersionInfo> info(
|
||||
FileVersionInfo::CreateFileVersionInfoForModule(module));
|
||||
return base::UTF16ToUTF8(info->product_version());
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#ifndef BRIGHTRAY_COMMON_MAIN_DELEGATE_H_
|
||||
#define BRIGHTRAY_COMMON_MAIN_DELEGATE_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "content/public/app/content_main_delegate.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user