| Index: extensions/browser/lazy_background_task_queue_unittest.cc
|
| diff --git a/extensions/browser/lazy_background_task_queue_unittest.cc b/extensions/browser/lazy_background_task_queue_unittest.cc
|
| index 200fb79f57df812669fa73720991ac0e0dd93b58..eefebc27ea4ce02aabbab4d044fb888192121d63 100644
|
| --- a/extensions/browser/lazy_background_task_queue_unittest.cc
|
| +++ b/extensions/browser/lazy_background_task_queue_unittest.cc
|
| @@ -195,7 +195,7 @@ TEST_F(LazyBackgroundTaskQueueTest, ProcessPendingTasks) {
|
|
|
| // ProcessPendingTasks is a no-op if there are no tasks.
|
| scoped_refptr<Extension> extension = CreateSimpleExtension();
|
| - queue.ProcessPendingTasks(NULL, browser_context(), extension);
|
| + queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
|
| EXPECT_EQ(0, task_run_count());
|
|
|
| // Schedule a task to run.
|
| @@ -208,13 +208,13 @@ TEST_F(LazyBackgroundTaskQueueTest, ProcessPendingTasks) {
|
|
|
| // Trying to run tasks for an unrelated BrowserContext should do nothing.
|
| content::TestBrowserContext unrelated_context;
|
| - queue.ProcessPendingTasks(NULL, &unrelated_context, extension);
|
| + queue.ProcessPendingTasks(NULL, &unrelated_context, extension.get());
|
| EXPECT_EQ(0, task_run_count());
|
| EXPECT_EQ(1u, queue.extensions_with_pending_tasks());
|
|
|
| // Processing tasks when there is one pending runs the task and removes the
|
| // extension from the list of extensions with pending tasks.
|
| - queue.ProcessPendingTasks(NULL, browser_context(), extension);
|
| + queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
|
| EXPECT_EQ(1, task_run_count());
|
| EXPECT_EQ(0u, queue.extensions_with_pending_tasks());
|
| }
|
|
|