From 4ccf4394d78f0e725dc18f11445727bc39bc0124 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 23 May 2016 15:08:20 +0900 Subject: [PATCH] Fix compilation errors on Linux --- brightray/browser/net/devtools_network_controller_handle.h | 1 + brightray/common/application_info_win.cc | 6 ++++-- brightray/common/main_delegate.h | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/brightray/browser/net/devtools_network_controller_handle.h b/brightray/browser/net/devtools_network_controller_handle.h index 1eefa6244e..b5c861f5cd 100644 --- a/brightray/browser/net/devtools_network_controller_handle.h +++ b/brightray/browser/net/devtools_network_controller_handle.h @@ -5,6 +5,7 @@ #ifndef BROWSER_DEVTOOLS_NETWORK_CONTROLLER_HANDLE_H_ #define BROWSER_DEVTOOLS_NETWORK_CONTROLLER_HANDLE_H_ +#include #include #include "base/macros.h" diff --git a/brightray/common/application_info_win.cc b/brightray/common/application_info_win.cc index 7c04617079..22635711cb 100644 --- a/brightray/common/application_info_win.cc +++ b/brightray/common/application_info_win.cc @@ -1,3 +1,5 @@ +#include + #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 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 info( FileVersionInfo::CreateFileVersionInfoForModule(module)); return base::UTF16ToUTF8(info->product_version()); } diff --git a/brightray/common/main_delegate.h b/brightray/common/main_delegate.h index 1eb1366f32..058e553903 100644 --- a/brightray/common/main_delegate.h +++ b/brightray/common/main_delegate.h @@ -5,6 +5,8 @@ #ifndef BRIGHTRAY_COMMON_MAIN_DELEGATE_H_ #define BRIGHTRAY_COMMON_MAIN_DELEGATE_H_ +#include + #include "base/macros.h" #include "content/public/app/content_main_delegate.h"