| Index: extensions/browser/state_store.cc
|
| diff --git a/extensions/browser/state_store.cc b/extensions/browser/state_store.cc
|
| index 44ab08b999ab9590612c735cbbf0d46430704f58..e31333732f564bcc6a2c320fece235c146e588f2 100644
|
| --- a/extensions/browser/state_store.cc
|
| +++ b/extensions/browser/state_store.cc
|
| @@ -42,7 +42,7 @@ class StateStore::DelayedTaskQueue {
|
|
|
| // Queues up a task for invoking once we're ready. Invokes immediately if
|
| // we're already ready.
|
| - void InvokeWhenReady(base::Closure task);
|
| + void InvokeWhenReady(const base::Closure& task);
|
|
|
| // Marks us ready, and invokes all pending tasks.
|
| void SetReady();
|
| @@ -55,7 +55,7 @@ class StateStore::DelayedTaskQueue {
|
| std::vector<base::Closure> pending_tasks_;
|
| };
|
|
|
| -void StateStore::DelayedTaskQueue::InvokeWhenReady(base::Closure task) {
|
| +void StateStore::DelayedTaskQueue::InvokeWhenReady(const base::Closure& task) {
|
| if (ready_) {
|
| task.Run();
|
| } else {
|
|
|