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

@ -5,6 +5,12 @@
#ifndef ATOM_COMMON_PLATFORM_UTIL_H_
#define ATOM_COMMON_PLATFORM_UTIL_H_
#include "build/build_config.h"
#if defined(OS_WIN)
#include "base/strings/string16.h"
#endif
class GURL;
namespace base {
@ -23,7 +29,13 @@ void OpenItem(const base::FilePath& full_path);
// Open the given external protocol URL in the desktop's default manner.
// (For example, mailto: URLs in the default mail user agent.)
bool OpenExternal(const GURL& url, bool activate);
bool OpenExternal(
#if defined(OS_WIN)
const base::string16& url,
#else
const GURL& url,
#endif
bool activate);
// Move a file to trash.
bool MoveItemToTrash(const base::FilePath& full_path);