[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / browser / net / net_error_diagnostics_dialog.cc
blob614a4e92d46372bfaf574e84b57c0ee5b0d77ccd
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/net/net_error_diagnostics_dialog.h"
7 #include "base/logging.h"
9 #if defined(OS_MACOSX)
10 #include "chrome/browser/net/net_error_diagnostics_dialog_mac.h"
11 #endif
13 bool CanShowNetworkDiagnosticsDialog() {
14 #if defined(OS_MACOSX)
15 return true;
16 #else
17 return false;
18 #endif
21 void ShowNetworkDiagnosticsDialog(content::WebContents* web_contents,
22 const GURL& failed_url) {
23 DCHECK(CanShowNetworkDiagnosticsDialog());
24 #if defined(OS_MACOSX)
25 ShowNetworkDiagnosticsDialogMac(web_contents, failed_url);
26 #else
27 NOTREACHED();
28 #endif