diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 21:38:37 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 21:38:37 +0000 |
commit | 0586b0e71d0b79511d8acbab2e7dedd41c830867 (patch) | |
tree | 1668695e1613586ad51b98598b4f2010bf8c9f37 /base | |
parent | 21f0460726afc4927c2df9b389a68074f21340d5 (diff) | |
download | chromium_src-0586b0e71d0b79511d8acbab2e7dedd41c830867.zip chromium_src-0586b0e71d0b79511d8acbab2e7dedd41c830867.tar.gz chromium_src-0586b0e71d0b79511d8acbab2e7dedd41c830867.tar.bz2 |
Fix up some style guide violations wrt aligning function arguments.
Review URL: http://codereview.chromium.org/593084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/observer_list_threadsafe.h | 3 | ||||
-rw-r--r-- | base/observer_list_unittest.cc | 4 | ||||
-rw-r--r-- | base/task.h | 3 | ||||
-rw-r--r-- | base/tracked_objects.cc | 4 | ||||
-rw-r--r-- | base/weak_ptr_unittest.cc | 3 |
5 files changed, 10 insertions, 7 deletions
diff --git a/base/observer_list_threadsafe.h b/base/observer_list_threadsafe.h index ce30ce0..d0151f4 100644 --- a/base/observer_list_threadsafe.h +++ b/base/observer_list_threadsafe.h @@ -137,7 +137,8 @@ class ObserverListThreadSafe for (it = observer_lists_.begin(); it != observer_lists_.end(); ++it) { MessageLoop* loop = (*it).first; ObserverList<ObserverType>* list = (*it).second; - loop->PostTask(FROM_HERE, + loop->PostTask( + FROM_HERE, NewRunnableMethod(this, &ObserverListThreadSafe<ObserverType>:: template NotifyWrapper<Method, Params>, list, method)); diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc index 3f5ff0a..79af96a 100644 --- a/base/observer_list_unittest.cc +++ b/base/observer_list_unittest.cc @@ -107,8 +107,8 @@ class AddRemoveThread : public PlatformThread::Delegate, void ThreadMain() { loop_ = new MessageLoop(); // Fire up a message loop. - loop_->PostTask(FROM_HERE, - factory_->NewRunnableMethod(&AddRemoveThread::AddTask)); + loop_->PostTask( + FROM_HERE, factory_->NewRunnableMethod(&AddRemoveThread::AddTask)); loop_->Run(); //LOG(ERROR) << "Loop 0x" << std::hex << loop_ << " done. " << // count_observes_ << ", " << count_addtask_; diff --git a/base/task.h b/base/task.h index cbb8c99..de5da77 100644 --- a/base/task.h +++ b/base/task.h @@ -66,7 +66,8 @@ class CancelableTask : public Task { // // // The factories are not thread safe, so always invoke on // // |MessageLoop::current()|. -// MessageLoop::current()->PostDelayedTask(FROM_HERE, +// MessageLoop::current()->PostDelayedTask( +// FROM_HERE, // some_method_factory_.NewRunnableMethod(&MyClass::SomeMethod), // kSomeMethodDelayMS); // } diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc index bc259a2..3085816 100644 --- a/base/tracked_objects.cc +++ b/base/tracked_objects.cc @@ -352,8 +352,8 @@ void ThreadData::RunOnAllThreads(void (*function)()) { HANDLE completion_handle = CreateEvent(NULL, false, false, NULL); // Tell all other threads to run. for (size_t i = 0; i < message_loops.size(); ++i) - message_loops[i]->PostTask(FROM_HERE, - new RunTheStatic(function, completion_handle, counter)); + message_loops[i]->PostTask( + FROM_HERE, new RunTheStatic(function, completion_handle, counter)); // Also run Task on our thread. RunTheStatic local_task(function, completion_handle, counter); diff --git a/base/weak_ptr_unittest.cc b/base/weak_ptr_unittest.cc index 6d38caa..df79606d 100644 --- a/base/weak_ptr_unittest.cc +++ b/base/weak_ptr_unittest.cc @@ -17,7 +17,8 @@ class OffThreadObjectCreator { { Thread creator_thread("creator_thread"); creator_thread.Start(); - creator_thread.message_loop()->PostTask(FROM_HERE, + creator_thread.message_loop()->PostTask( + FROM_HERE, NewRunnableFunction(OffThreadObjectCreator::CreateObject, &result)); } DCHECK(result); // We synchronized on thread destruction above. |