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

Unified Diff: remoting/host/host_event_logger_win.cc

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/heartbeat_sender_unittest.cc ('k') | remoting/host/host_extension_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_event_logger_win.cc
diff --git a/remoting/host/host_event_logger_win.cc b/remoting/host/host_event_logger_win.cc
index 374cddb7e892f2ede73cdadb1ae5f768d24ebfe6..050d7256b07b4393a3cb87ae536becd418275f85 100644
--- a/remoting/host/host_event_logger_win.cc
+++ b/remoting/host/host_event_logger_win.cc
@@ -59,10 +59,10 @@ class HostEventLoggerWin : public HostEventLogger, public HostStatusObserver {
HostEventLoggerWin::HostEventLoggerWin(base::WeakPtr<HostStatusMonitor> monitor,
const std::string& application_name)
: monitor_(monitor),
- event_log_(NULL) {
+ event_log_(nullptr) {
event_log_ = RegisterEventSourceW(
- NULL, base::UTF8ToUTF16(application_name).c_str());
- if (event_log_ != NULL) {
+ nullptr, base::UTF8ToUTF16(application_name).c_str());
+ if (event_log_ != nullptr) {
monitor_->AddStatusObserver(this);
} else {
PLOG(ERROR) << "Failed to register the event source: " << application_name;
@@ -70,7 +70,7 @@ HostEventLoggerWin::HostEventLoggerWin(base::WeakPtr<HostStatusMonitor> monitor,
}
HostEventLoggerWin::~HostEventLoggerWin() {
- if (event_log_ != NULL) {
+ if (event_log_ != nullptr) {
if (monitor_)
monitor_->RemoveStatusObserver(this);
DeregisterEventSource(event_log_);
@@ -113,7 +113,7 @@ void HostEventLoggerWin::OnStart(const std::string& xmpp_login) {
void HostEventLoggerWin::Log(WORD type,
DWORD event_id,
const std::vector<std::string>& strings) {
- if (event_log_ == NULL)
+ if (event_log_ == nullptr)
return;
// ReportEventW() takes an array of raw string pointers. They should stay
@@ -129,11 +129,11 @@ void HostEventLoggerWin::Log(WORD type,
type,
HOST_CATEGORY,
event_id,
- NULL,
+ nullptr,
static_cast<WORD>(raw_strings.size()),
0,
&raw_strings[0],
- NULL)) {
+ nullptr)) {
PLOG(ERROR) << "Failed to write an event to the event log";
}
}
« no previous file with comments | « remoting/host/heartbeat_sender_unittest.cc ('k') | remoting/host/host_extension_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698