Fix other compilation errors

This commit is contained in:
Cheng Zhao 2015-03-10 17:00:55 -07:00
parent 98fbe5127b
commit 5b2c0110dc
9 changed files with 16 additions and 27 deletions

View file

@ -9,6 +9,7 @@
#include "atom/browser/native_window.h"
#include "base/files/file_util.h"
#include "base/mac/foundation_util.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/strings/sys_string_conversions.h"

View file

@ -12,8 +12,8 @@
namespace crash_reporter {
CrashReporter::CrashReporter() {
auto command_line = base::CommandLine::ForCurrentProcess();
is_browser_ = command->GetSwitchValueASCII(switches::kProcessType).empty();
auto cmd = base::CommandLine::ForCurrentProcess();
is_browser_ = cmd->GetSwitchValueASCII(switches::kProcessType).empty();
}
CrashReporter::~CrashReporter() {

View file

@ -112,7 +112,8 @@ std::vector<std::string> String16VectorToStringVector(
}
#endif
base::FilePath GetResourcesPath(CommandLine* command_line, bool is_browser) {
base::FilePath GetResourcesPath(base::CommandLine* command_line,
bool is_browser) {
base::FilePath exec_path(command_line->argv()[0]);
PathService::Get(base::FILE_EXE, &exec_path);
base::FilePath resources_path =