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

Unified Diff: mojo/common/message_pump_mojo.cc

Issue 99913002: Remove "ScopedHandleBase<H>::operator H() const" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/public/bindings/lib/connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/message_pump_mojo.cc
diff --git a/mojo/common/message_pump_mojo.cc b/mojo/common/message_pump_mojo.cc
index 18787abfdbf2779ced0e903ddf13afdc7a717d4d..78b2bc144689570af1f752ce4543adaba604194b 100644
--- a/mojo/common/message_pump_mojo.cc
+++ b/mojo/common/message_pump_mojo.cc
@@ -125,7 +125,7 @@ void MessagePumpMojo::DoInternalWork(bool block) {
if (result == 0) {
// Control pipe was written to.
uint32_t num_bytes = 0;
- ReadMessageRaw(run_state_->read_handle, NULL, &num_bytes, NULL, NULL,
+ ReadMessageRaw(run_state_->read_handle.get(), NULL, &num_bytes, NULL, NULL,
MOJO_READ_MESSAGE_FLAG_MAY_DISCARD);
} else if (result > 0) {
const size_t index = static_cast<size_t>(result);
@@ -187,13 +187,13 @@ void MessagePumpMojo::SignalControlPipe() {
return;
// TODO(sky): deal with error?
- WriteMessageRaw(run_state_->write_handle, NULL, 0, NULL, 0,
+ WriteMessageRaw(run_state_->write_handle.get(), NULL, 0, NULL, 0,
MOJO_WRITE_MESSAGE_FLAG_NONE);
}
MessagePumpMojo::WaitState MessagePumpMojo::GetWaitState() const {
WaitState wait_state;
- wait_state.handles.push_back(run_state_->read_handle);
+ wait_state.handles.push_back(run_state_->read_handle.get());
wait_state.wait_flags.push_back(MOJO_WAIT_FLAG_READABLE);
for (HandleToHandler::const_iterator i = handlers_.begin();
« no previous file with comments | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/public/bindings/lib/connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698