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

Unified Diff: apps/shell/shell_extension_system.cc

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup, unit test (runtime_data) Created 6 years, 11 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
Index: apps/shell/shell_extension_system.cc
diff --git a/apps/shell/shell_extension_system.cc b/apps/shell/shell_extension_system.cc
index dfb9feca1c7c2a22fa12a03b1a403bebcb83597a..867c2f66ed52d0844e06cf8807dd4ceb8566dc54 100644
--- a/apps/shell/shell_extension_system.cc
+++ b/apps/shell/shell_extension_system.cc
@@ -21,6 +21,7 @@
#include "extensions/browser/info_map.h"
#include "extensions/browser/lazy_background_task_queue.h"
#include "extensions/browser/process_manager.h"
+#include "extensions/browser/runtime_data.h"
using content::BrowserContext;
using content::BrowserThread;
@@ -77,6 +78,7 @@ void ShellExtensionSystem::Shutdown() {
}
void ShellExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
+ runtime_data_.reset(new RuntimeData);
lazy_background_task_queue_.reset(
new LazyBackgroundTaskQueue(browser_context_));
event_router_.reset(
@@ -88,6 +90,10 @@ ExtensionService* ShellExtensionSystem::extension_service() {
return NULL;
}
+RuntimeData* ShellExtensionSystem::runtime_data() {
+ return runtime_data_.get();
+}
+
ManagementPolicy* ShellExtensionSystem::management_policy() {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698