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

Side by Side Diff: remoting/host/shutdown_watchdog.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « remoting/host/shutdown_watchdog.h ('k') | remoting/host/signaling_connector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/shutdown_watchdog.h" 5 #include "remoting/host/shutdown_watchdog.h"
6 6
7 #include <stdlib.h> // For _exit() on Windows. 7 #include <stdlib.h> // For _exit() on Windows.
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h"
10 11
11 #if defined(OS_POSIX) 12 #if defined(OS_POSIX)
12 #include <unistd.h> 13 #include <unistd.h>
13 #endif // defined(OS_POSIX) 14 #endif // defined(OS_POSIX)
14 15
15 namespace remoting { 16 namespace remoting {
16 17
17 ShutdownWatchdog::ShutdownWatchdog(const base::TimeDelta& duration) 18 ShutdownWatchdog::ShutdownWatchdog(const base::TimeDelta& duration)
18 : base::Watchdog(duration, "Shutdown watchdog", true) { 19 : base::Watchdog(duration, "Shutdown watchdog", true) {
19 } 20 }
(...skipping 10 matching lines...) Expand all
30 { 31 {
31 base::AutoLock lock(lock_); 32 base::AutoLock lock(lock_);
32 exit_code = exit_code_; 33 exit_code = exit_code_;
33 } 34 }
34 35
35 LOG(ERROR) << "Shutdown watchdog triggered, exiting with code " << exit_code; 36 LOG(ERROR) << "Shutdown watchdog triggered, exiting with code " << exit_code;
36 _exit(exit_code); 37 _exit(exit_code);
37 } 38 }
38 39
39 } // namespace remoting 40 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/shutdown_watchdog.h ('k') | remoting/host/signaling_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698