win: Fix openExternal not working with non-ASCII characters

This commit is contained in:
Cheng Zhao 2016-07-11 17:11:05 +09:00
parent 5abe726678
commit 86338290fb
4 changed files with 34 additions and 24 deletions

View file

@ -7,12 +7,19 @@
#include "atom/common/platform_util.h"
#include "atom/common/native_mate_converters/file_path_converter.h"
#include "atom/common/native_mate_converters/gurl_converter.h"
#include "atom/common/native_mate_converters/string16_converter.h"
#include "atom/common/node_includes.h"
#include "native_mate/dictionary.h"
namespace {
bool OpenExternal(const GURL& url, mate::Arguments* args) {
bool OpenExternal(
#if defined(OS_WIN)
const base::string16& url,
#else
const GURL& url,
#endif
mate::Arguments* args) {
bool activate = true;
if (args->Length() == 2) {
mate::Dictionary options;