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

Unified Diff: chrome/browser/extensions/lazy_background_task_queue.cc

Issue 9791011: Add experimental.alarms API to allow lazy background pages to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
« no previous file with comments | « chrome/browser/extensions/extension_module.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/lazy_background_task_queue.cc
diff --git a/chrome/browser/extensions/lazy_background_task_queue.cc b/chrome/browser/extensions/lazy_background_task_queue.cc
index 718c377f5871f2545343fe719a46802f215e3d14..1a5e1a22af20f3f345d650242108a5afefa161a9 100644
--- a/chrome/browser/extensions/lazy_background_task_queue.cc
+++ b/chrome/browser/extensions/lazy_background_task_queue.cc
@@ -50,7 +50,7 @@ void LazyBackgroundTaskQueue::AddPendingTask(
const Extension* extension = profile->GetExtensionService()->
extensions()->GetByID(extension_id);
DCHECK(extension->has_lazy_background_page());
- ExtensionProcessManager* pm = profile->GetExtensionProcessManager();
+ ExtensionProcessManager* pm = profile->GetExtensionProcessManager();
pm->IncrementLazyKeepaliveCount(extension);
pm->CreateBackgroundHost(extension, extension->GetBackgroundURL());
} else {
@@ -60,8 +60,7 @@ void LazyBackgroundTaskQueue::AddPendingTask(
tasks_list->push_back(task);
}
-void LazyBackgroundTaskQueue::ProcessPendingTasks(
- ExtensionHost* host) {
+void LazyBackgroundTaskQueue::ProcessPendingTasks(ExtensionHost* host) {
PendingTasksKey key(host->profile(), host->extension()->id());
PendingTasksMap::iterator map_it = pending_tasks_.find(key);
if (map_it == pending_tasks_.end()) {
« no previous file with comments | « chrome/browser/extensions/extension_module.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698