Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: base/debug/debugger_win.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/debug/debugger_unittest.cc ('k') | base/debug/gdi_debug_util_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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.
4
5 #include "base/debug/debugger.h"
6
7 #include <stdlib.h>
8 #include <windows.h>
9
10 namespace base {
11 namespace debug {
12
13 bool BeingDebugged() {
14 return ::IsDebuggerPresent() != 0;
15 }
16
17 void BreakDebugger() {
18 if (IsDebugUISuppressed())
19 _exit(1);
20
21 __debugbreak();
22 }
23
24 } // namespace debug
25 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/debugger_unittest.cc ('k') | base/debug/gdi_debug_util_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698