Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: extensions/browser/state_store.cc

Issue 2133203002: [Extensions] Code cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698