1 // Copyright (c) 2013 Intel Corporation. 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.
5 #include "xwalk/runtime/browser/application_component.h"
7 #include "xwalk/application/browser/application_system.h"
11 ApplicationComponent::ApplicationComponent(
12 RuntimeContext* runtime_context)
13 : app_system_(application::ApplicationSystem::Create(runtime_context)),
14 extensions_enabled_(true) {}
16 ApplicationComponent::~ApplicationComponent() {}
18 void ApplicationComponent::CreateUIThreadExtensions(
19 content::RenderProcessHost* host,
20 extensions::XWalkExtensionVector* extensions) {
21 if (!extensions_enabled_)
23 app_system_->CreateExtensions(host, extensions);
26 void ApplicationComponent::CreateExtensionThreadExtensions(
27 content::RenderProcessHost* host,
28 extensions::XWalkExtensionVector* extensions) {}