| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/browser/lazy_context_id.h" |
| 6 |
| 7 #include "extensions/browser/lazy_background_task_queue.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 LazyContextId::LazyContextId(content::BrowserContext* context, |
| 12 const ExtensionId& extension_id) |
| 13 : type_(Type::kEventPage), context_(context), extension_id_(extension_id) {} |
| 14 |
| 15 LazyBackgroundTaskQueue* LazyContextId::GetTaskQueue() { |
| 16 DCHECK(is_for_event_page()); |
| 17 return LazyBackgroundTaskQueue::Get(context_); |
| 18 } |
| 19 |
| 20 } // namespace extensions |
| OLD | NEW |