Browse Source

fix: Building on macOS with is_debug true (#30913)

* fix: Building on macOS with is_debug true

* Change to no-op impl
Raymond Zhao 3 years ago
parent
commit
1295ba0ffc
1 changed files with 13 additions and 0 deletions
  1. 13 0
      shell/common/platform_util_mac.mm

+ 13 - 0
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) {