Chromium Code Reviews| Index: chrome/browser/after_startup_task_utils.h |
| diff --git a/chrome/browser/after_startup_task_utils.h b/chrome/browser/after_startup_task_utils.h |
| index 19751300b3abf48445d6dd419d82925bec56e030..dbd9b63c40efb7d71067716ed7058544b62d9e99 100644 |
| --- a/chrome/browser/after_startup_task_utils.h |
| +++ b/chrome/browser/after_startup_task_utils.h |
| @@ -6,6 +6,7 @@ |
| #define CHROME_BROWSER_AFTER_STARTUP_TASK_UTILS_H_ |
| #include "base/bind.h" |
| +#include "base/callback.h" |
|
sky
2017/03/22 17:34:11
callback_forward?
gab
2017/03/22 17:46:45
Need full type to pass by value.
|
| #include "base/macros.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/task_runner.h" |
| @@ -25,7 +26,7 @@ class AfterStartupTaskUtils { |
| // Overrides from base::TaskRunner: |
| bool PostDelayedTask(const tracked_objects::Location& from_here, |
| - const base::Closure& task, |
| + base::Closure task, |
| base::TimeDelta delay) override; |
| bool RunsTasksOnCurrentThread() const override; |
| @@ -46,7 +47,7 @@ class AfterStartupTaskUtils { |
| static void PostTask( |
| const tracked_objects::Location& from_here, |
| const scoped_refptr<base::TaskRunner>& destination_runner, |
| - const base::Closure& task); |
| + base::Closure task); |
| // Returns true if browser startup is complete. Only use this on a one-off |
| // basis; If you need to poll this function constantly, use the above |