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

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: rebase, RuntimeDataTest tweak, win warning 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
« no previous file with comments | « apps/shell/shell_extension_system.h ('k') | apps/shell/shell_extensions_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/shell_extension_system.cc
diff --git a/apps/shell/shell_extension_system.cc b/apps/shell/shell_extension_system.cc
index ecf2b8e7eceae09bcf3423477e2302e7596d42e9..52b8cdbfe8110cdd8644a298b1fb24ace4723039 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,8 @@ void ShellExtensionSystem::Shutdown() {
}
void ShellExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
+ runtime_data_.reset(
+ new RuntimeData(ExtensionRegistry::Get(browser_context_)));
lazy_background_task_queue_.reset(
new LazyBackgroundTaskQueue(browser_context_));
event_router_.reset(
@@ -88,6 +91,10 @@ ExtensionService* ShellExtensionSystem::extension_service() {
return NULL;
}
+RuntimeData* ShellExtensionSystem::runtime_data() {
+ return runtime_data_.get();
+}
+
ManagementPolicy* ShellExtensionSystem::management_policy() {
return NULL;
}
« no previous file with comments | « apps/shell/shell_extension_system.h ('k') | apps/shell/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698