Index: mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h |
diff --git a/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h b/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h |
index 2d04a77d8c41747c2ff68580316e0663415f7201..0bfc12bee6aea491ea05f39bec30372bd1de2f71 100644 |
--- a/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h |
+++ b/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h |
@@ -6,8 +6,8 @@ |
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ASSOCIATED_INTERFACE_PTR_STATE_H_ |
#include <stdint.h> |
- |
#include <algorithm> // For |std::swap()|. |
+#include <utility> |
#include "base/macros.h" |
#include "base/memory/scoped_ptr.h" |
@@ -96,7 +96,7 @@ class AssociatedInterfacePtrState { |
AssociatedInterfacePtrInfo<GenericInterface> result; |
result.set_version(version_); |
- AssociatedInterfacePtrInfoHelper::SetHandle(&result, handle.Pass()); |
+ AssociatedInterfacePtrInfoHelper::SetHandle(&result, std::move(handle)); |
return result.Pass(); |
} |