diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-21 20:06:23 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-21 20:06:23 +0000 |
commit | ad8cfa996623e585ea16665fc18db174fe947121 (patch) | |
tree | c44f98c608a090dccfc90aa81c95c814f26a7775 /media | |
parent | 0f4dffbf1a776c3bdd124be30e983247fb4d6896 (diff) | |
download | chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.zip chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.tar.gz chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.tar.bz2 |
Removed LOG_GETLASTERROR and LOG_ERRNO macros.
Most code uses PLOG with the same effect.
TBR=bradchen
NOTRY=true
Review URL: https://codereview.chromium.org/281223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/audio/win/audio_low_latency_output_win.cc | 9 | ||||
-rw-r--r-- | media/base/user_input_monitor_win.cc | 12 |
2 files changed, 8 insertions, 13 deletions
diff --git a/media/audio/win/audio_low_latency_output_win.cc b/media/audio/win/audio_low_latency_output_win.cc index 5c3205c..6aad434 100644 --- a/media/audio/win/audio_low_latency_output_win.cc +++ b/media/audio/win/audio_low_latency_output_win.cc @@ -252,8 +252,7 @@ void WASAPIAudioOutputStream::Start(AudioSourceCallback* callback) { // Start streaming data between the endpoint buffer and the audio engine. HRESULT hr = audio_client_->Start(); if (FAILED(hr)) { - LOG_GETLASTERROR(ERROR) - << "Failed to start output streaming: " << std::hex << hr; + PLOG(ERROR) << "Failed to start output streaming: " << std::hex << hr; StopThread(); callback->OnError(this); } @@ -268,8 +267,7 @@ void WASAPIAudioOutputStream::Stop() { // Stop output audio streaming. HRESULT hr = audio_client_->Stop(); if (FAILED(hr)) { - LOG_GETLASTERROR(ERROR) - << "Failed to stop output streaming: " << std::hex << hr; + PLOG(ERROR) << "Failed to stop output streaming: " << std::hex << hr; source_->OnError(this); } @@ -280,8 +278,7 @@ void WASAPIAudioOutputStream::Stop() { // Flush all pending data and reset the audio clock stream position to 0. hr = audio_client_->Reset(); if (FAILED(hr)) { - LOG_GETLASTERROR(ERROR) - << "Failed to reset streaming: " << std::hex << hr; + PLOG(ERROR) << "Failed to reset streaming: " << std::hex << hr; callback->OnError(this); } diff --git a/media/base/user_input_monitor_win.cc b/media/base/user_input_monitor_win.cc index e9340d8..6efdc52 100644 --- a/media/base/user_input_monitor_win.cc +++ b/media/base/user_input_monitor_win.cc @@ -128,7 +128,7 @@ void UserInputMonitorWinCore::StartMonitor(EventBitMask type) { window_.reset(new base::win::MessageWindow()); if (!window_->Create(base::Bind(&UserInputMonitorWinCore::HandleMessage, base::Unretained(this)))) { - LOG_GETLASTERROR(ERROR) << "Failed to create the raw input window"; + PLOG(ERROR) << "Failed to create the raw input window"; window_.reset(); return; } @@ -137,8 +137,7 @@ void UserInputMonitorWinCore::StartMonitor(EventBitMask type) { // Register to receive raw mouse and/or keyboard input. scoped_ptr<RAWINPUTDEVICE> device(GetRawInputDevices(type, RIDEV_INPUTSINK)); if (!RegisterRawInputDevices(device.get(), 1, sizeof(*device))) { - LOG_GETLASTERROR(ERROR) - << "RegisterRawInputDevices() failed for RIDEV_INPUTSINK"; + PLOG(ERROR) << "RegisterRawInputDevices() failed for RIDEV_INPUTSINK"; window_.reset(); return; } @@ -162,8 +161,7 @@ void UserInputMonitorWinCore::StopMonitor(EventBitMask type) { scoped_ptr<RAWINPUTDEVICE> device(GetRawInputDevices(type, RIDEV_REMOVE)); if (!RegisterRawInputDevices(device.get(), 1, sizeof(*device))) { - LOG_GETLASTERROR(INFO) - << "RegisterRawInputDevices() failed for RIDEV_REMOVE"; + PLOG(INFO) << "RegisterRawInputDevices() failed for RIDEV_REMOVE"; } events_monitored_ &= ~type; @@ -183,7 +181,7 @@ LRESULT UserInputMonitorWinCore::OnInput(HRAWINPUT input_handle) { UINT result = GetRawInputData( input_handle, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER)); if (result == -1) { - LOG_GETLASTERROR(ERROR) << "GetRawInputData() failed"; + PLOG(ERROR) << "GetRawInputData() failed"; return 0; } DCHECK_EQ(0u, result); @@ -194,7 +192,7 @@ LRESULT UserInputMonitorWinCore::OnInput(HRAWINPUT input_handle) { result = GetRawInputData( input_handle, RID_INPUT, buffer.get(), &size, sizeof(RAWINPUTHEADER)); if (result == -1) { - LOG_GETLASTERROR(ERROR) << "GetRawInputData() failed"; + PLOG(ERROR) << "GetRawInputData() failed"; return 0; } DCHECK_EQ(size, result); |