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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount.h

Issue 10825189: [NaCl SDK] Get nacl_mounts_tests building. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows fixes Created 8 years, 4 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
Index: native_client_sdk/src/libraries/nacl_mounts/mount.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount.h b/native_client_sdk/src/libraries/nacl_mounts/mount.h
index cbb80149fd365d87d2ad7138b020c7462a31d9b7..53d160a4d41fc5c3e14e8824d3b4a05deb66c9b5 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/mount.h
+++ b/native_client_sdk/src/libraries/nacl_mounts/mount.h
@@ -71,7 +71,7 @@ class Mount : public RefObject {
friend class KernelObject;
friend class KernelProxy;
void Acquire() { RefObject::Acquire(); }
- void Release() { RefObject::Release(); }
+ bool Release() { return RefObject::Release(); }
template <class M, class P> friend class MountFactory;
DISALLOW_COPY_AND_ASSIGN(Mount);
@@ -79,10 +79,7 @@ class Mount : public RefObject {
template<class C, class P> class MountFactory : public P {
- protected:
- MountFactory()
- : P() {}
-
+ public:
static Mount* Create(int dev, StringMap_t& args) {
Mount* mnt = new C();
if (mnt->Init(dev, args) == false) {
@@ -92,7 +89,8 @@ template<class C, class P> class MountFactory : public P {
return mnt;
}
- friend class KernelProxy;
+ protected:
+ MountFactory(): P() {}
};
#endif // LIBRARIES_NACL_MOUNTS_MOUNT_H_

Powered by Google App Engine
This is Rietveld 408576698