diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
commit | 52a261f59b20e89f8c5936bce642362f8e367b57 (patch) | |
tree | fcc7b3c100caaf43848cd9a241beafc883f93b7d /base/task.h | |
parent | 7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff) | |
download | chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2 |
NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules:
- <=80 cols
- no trailing whitespaces
- svn:eol-style=LF
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/task.h')
-rw-r--r-- | base/task.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/base/task.h b/base/task.h index 9053c1a..0aeea17 100644 --- a/base/task.h +++ b/base/task.h @@ -332,7 +332,9 @@ inline CancelableTask* NewRunnableMethod(T* object, Method method) { template <class T, class Method, class A> inline CancelableTask* NewRunnableMethod(T* object, Method method, const A& a) { - return new RunnableMethod<T, Method, Tuple1<A> >(object, method, MakeTuple(a)); + return new RunnableMethod<T, Method, Tuple1<A> >(object, + method, + MakeTuple(a)); } template <class T, class Method, class A, class B> @@ -435,7 +437,8 @@ inline CancelableTask* NewRunnableFunction(Function function, const A& a) { template <class Function, class A, class B> inline CancelableTask* NewRunnableFunction(Function function, const A& a, const B& b) { - return new RunnableFunction<Function, Tuple2<A, B> >(function, MakeTuple(a, b)); + return new RunnableFunction<Function, Tuple2<A, B> >(function, + MakeTuple(a, b)); } template <class Function, class A, class B, class C> @@ -587,7 +590,8 @@ struct Callback1 { }; template <class T, typename Arg1> -typename Callback1<Arg1>::Type* NewCallback(T* object, void (T::*method)(Arg1)) { +typename Callback1<Arg1>::Type* NewCallback(T* object, + void (T::*method)(Arg1)) { return new CallbackImpl<T, void (T::*)(Arg1), Tuple1<Arg1> >(object, method); } |