windows build fixes
This commit is contained in:
parent
ea62ecd188
commit
5b598037bb
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue