summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjuncai <juncai@chromium.org>2015-05-20 15:20:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-20 22:20:17 +0000
commit07ea53870ed17c6f4f410c5ae0838cf4fceec1c3 (patch)
treec4f81ad24ce989b62095730e369c628677b5805c /apps
parentfc092256287403e7326635e2a818a00d43269947 (diff)
downloadchromium_src-07ea53870ed17c6f4f410c5ae0838cf4fceec1c3.zip
chromium_src-07ea53870ed17c6f4f410c5ae0838cf4fceec1c3.tar.gz
chromium_src-07ea53870ed17c6f4f410c5ae0838cf4fceec1c3.tar.bz2
Extract LazyBackgroundTaskQueue from ExtensionSystem.
This patch removes lazy_background_task_queue accessor from ExtensionSystem. It can be its own browser context keyed service. It can be built by its new factory. Review URL: https://codereview.chromium.org/1129063011 Cr-Commit-Position: refs/heads/master@{#330815}
Diffstat (limited to 'apps')
-rw-r--r--apps/launcher.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/launcher.cc b/apps/launcher.cc
index cda74ac..d5ca792 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -28,7 +28,6 @@
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
-#include "extensions/browser/extension_system.h"
#include "extensions/browser/granted_file_entry.h"
#include "extensions/browser/lazy_background_task_queue.h"
#include "extensions/browser/process_manager.h"
@@ -56,7 +55,6 @@ using extensions::app_file_handler_util::PrepareFilesForWritableApp;
using extensions::EventRouter;
using extensions::Extension;
using extensions::ExtensionHost;
-using extensions::ExtensionSystem;
using extensions::GrantedFileEntry;
namespace apps {
@@ -261,7 +259,7 @@ class PlatformAppPathLauncher
// the lazy background task queue is used to load the extension and then
// call back to us.
extensions::LazyBackgroundTaskQueue* const queue =
- ExtensionSystem::Get(profile_)->lazy_background_task_queue();
+ extensions::LazyBackgroundTaskQueue::Get(profile_);
if (queue->ShouldEnqueueTask(profile_, extension)) {
queue->AddPendingTask(
profile_, extension_id,