From 1295ba0ffcc97913a8254ad1d43d45884f38abab Mon Sep 17 00:00:00 2001 From: Raymond Zhao Date: Tue, 14 Sep 2021 17:40:36 -0700 Subject: [PATCH] fix: Building on macOS with is_debug true (#30913) * fix: Building on macOS with is_debug true * Change to no-op impl --- shell/common/platform_util_mac.mm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shell/common/platform_util_mac.mm b/shell/common/platform_util_mac.mm index c844c1d7bf92..1647ab05fe17 100644 --- a/shell/common/platform_util_mac.mm +++ b/shell/common/platform_util_mac.mm @@ -21,6 +21,7 @@ #include "base/strings/stringprintf.h" #include "base/strings/sys_string_conversions.h" #include "net/base/mac/url_conversions.h" +#include "ui/views/widget/widget.h" #include "url/gurl.h" namespace { @@ -117,6 +118,18 @@ void OpenExternal(const GURL& url, }); } +// The following function helps with debug builds on the Mac +gfx::NativeView GetViewForWindow(gfx::NativeWindow native_window) { + NOTREACHED(); + return nil; +} + +// The following function helps with debug builds on the Mac +gfx::NativeView GetParent(gfx::NativeView view) { + NOTREACHED(); + return nil; +} + bool MoveItemToTrashWithError(const base::FilePath& full_path, bool delete_on_fail, std::string* error) {