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

Unified Diff: base/win/scoped_handle.h

Issue 9150030: Initialize IPC:ChannelHandle from existing HANDLE (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed build error Created 8 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 | « no previous file | ipc/ipc_channel_handle.h » ('j') | ipc/ipc_channel_handle.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_handle.h
diff --git a/base/win/scoped_handle.h b/base/win/scoped_handle.h
index 3bb0279648aef9c785a440659c2336b893606ce4..06fdb57d3790054935017f1cfaa4deb341167756 100644
--- a/base/win/scoped_handle.h
+++ b/base/win/scoped_handle.h
@@ -57,11 +57,11 @@ class ScopedHandle {
handle_ = new_handle;
}
- HANDLE Get() {
+ HANDLE Get() const {
return handle_;
}
- operator HANDLE() { return handle_; }
+ operator HANDLE() const { return handle_; }
cpu_(ooo_6.6-7.5) 2012/01/19 20:56:05 can you make it so it looks like Get()? line-wise
HANDLE Take() {
// transfers ownership away from this object
« no previous file with comments | « no previous file | ipc/ipc_channel_handle.h » ('j') | ipc/ipc_channel_handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698