 Chromium Code Reviews
 Chromium Code Reviews Issue 1808203005:
  [OnionSoup] Moving VR service from content to Blink  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1808203005:
  [OnionSoup] Moving VR service from content to Blink  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: third_party/WebKit/Source/platform/mojo/MojoHelper.h | 
| diff --git a/third_party/WebKit/Source/platform/mojo/MojoHelper.h b/third_party/WebKit/Source/platform/mojo/MojoHelper.h | 
| index 74f931d2fa4ad9ed3a76b5f2a15569d0298bddb2..e1c5026d4974417aeba7f4ce5c819ad3f855b757 100644 | 
| --- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h | 
| +++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h | 
| @@ -40,6 +40,13 @@ base::Callback<R(Args...)> createBaseCallback(PassOwnPtr<Function<R(Args...)>> f | 
| return base::Bind(&internal::CallWTFFunction<R, Args...>, base::Owned(functor.leakPtr())); | 
| } | 
| +template <typename Class, typename ReturnType, typename BoundArgs, typename... Args> | 
| +mojo::Callback<ReturnType(Args...)> | 
| +sameThreadBindForMojoWithBoundArgs(ReturnType (Class::*method)(BoundArgs*, Args...), Class* instance, BoundArgs* bound) | 
| 
haraken
2016/04/27 06:51:07
I want to avoid introducing this method (because U
 | 
| +{ | 
| + return base::Bind(method, base::Unretained(instance), base::Unretained(bound)); | 
| +} | 
| + | 
| } // namespace blink | 
| namespace mojo { |