| Index: media/base/user_input_monitor_win.cc
|
| diff --git a/media/base/user_input_monitor_win.cc b/media/base/user_input_monitor_win.cc
|
| index e9340d82834f0a89160a670faeaa3094b98e7bec..6efdc5283d25362dbc2f3372fa724358bbbf7f05 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);
|
|
|