windows build fixes

This commit is contained in:
Jeremy Rose 2021-03-22 15:49:43 -07:00
parent ea62ecd188
commit 5b598037bb
2 changed files with 3 additions and 2 deletions

View file

@ -6,11 +6,12 @@
#include <windows.h> // windows.h must be included first
#include "base/win/shlwapi.h" // NOLINT(build/include_order)
#include <atlbase.h> // atlbase.h for CComPtr
#include <shlobj.h>
#include <shobjidl.h>
#include "base/win/shlwapi.h" // NOLINT(build/include_order)
#include "base/files/file_util.h"
#include "base/i18n/case_conversion.h"

View file

@ -267,7 +267,7 @@ bool WebContentsPreferences::GetPreloadPath(base::FilePath* path) const {
#else
preload_url = GURL(preload_path);
#endif
if (net::FileURLToFilePath(GURL(preload_path), &preload)) {
if (net::FileURLToFilePath(preload_url, &preload)) {
*path = std::move(preload);
return true;
} else {