// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h"

#include "base/logging.h"

#if !defined(TOOLKIT_VIEWS) || !defined(USE_AURA)
void ShowProximityAuthErrorBubble(const base::string16& message,
                                  const gfx::Range& link_range,
                                  const GURL& link_url,
                                  const gfx::Rect& anchor_rect,
                                  content::WebContents* web_contents) {
  NOTIMPLEMENTED();
}
#endif

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h"

#include "base/logging.h"

#if !defined(TOOLKIT_VIEWS)
void ShowProximityAuthErrorBubble(const base::string16& message,
                                  const gfx::Range& link_range,
                                  const GURL& link_url,
                                  const gfx::Rect& anchor_rect,
                                  content::WebContents* web_contents) {
  NOTIMPLEMENTED();
}
#endif

--- 
+++ 
@@ -6,7 +6,7 @@
 
 #include "base/logging.h"
 
-#if !defined(TOOLKIT_VIEWS)
+#if !defined(TOOLKIT_VIEWS) || !defined(USE_AURA)
 void ShowProximityAuthErrorBubble(const base::string16& message,
                                   const gfx::Range& link_range,
                                   const GURL& link_url,
MacViews: Fix compile regression after SmartLock error bubble in r313408

toolkit-views builds on mac are getting:
Undefined symbols for architecture x86_64:
   ShowProximityAuthErrorBubble

To fix, move proximity_auth_error_bubble.cc to mac_sources. This works
because the symbol is only referenced on platforms with extensions,
which are toolkit_views platforms + mac.

After proximity_auth_error_bubble_view.cc moves in
chrome_browser_ui.gypi from chrome_browser_ui_views_non_mac_sources to
chrome_browser_ui_views_sources then proximity_auth_error_bubble.cc can
be deleted.

BUG=399191
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/887563003

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#313888}
