0

Changes to weblayer to allow removing windows.h

Before we can remove includes of windows.h from header files we need to
_add_ includes of windows.h to .cc files that require it. This change
does this for source files in weblayer. Windows.h must be included
before KnownFolders.h.

Bug: 796644
Change-Id: I7c9a8d682d8af9d7efa5a22e651065b30d8762e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3017276
Auto-Submit: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Reviewed-by: Robbie McElrath <rmcelrath@chromium.org>
Cr-Commit-Position: refs/heads/master@{#900056}
This commit is contained in:
Bruce Dawson
2021-07-09 17:22:34 +00:00
committed by Chromium LUCI CQ
parent 65338527fc
commit dbf82f715b

@ -54,6 +54,8 @@
#include "components/permissions/contexts/geolocation_permission_context_android.h"
#include "components/unified_consent/pref_names.h"
#elif defined(OS_WIN)
#include <windows.h>
#include <KnownFolders.h>
#include <shlobj.h>
#include "base/win/scoped_co_mem.h"