Fix compilation errors on Linux

This commit is contained in:
Cheng Zhao 2016-05-23 15:08:20 +09:00
parent 0a5c4b8ced
commit 4ccf4394d7
3 changed files with 7 additions and 2 deletions

View file

@ -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"

View file

@ -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());
}

View file

@ -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"