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

Side by Side Diff: athena/main/athena_launcher.cc

Issue 543263002: Move ContentAppModelBuilder to athena/extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS fix Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « athena/extensions/public/extension_app_model_builder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "athena/main/public/athena_launcher.h" 5 #include "athena/main/public/athena_launcher.h"
6 6
7 #include "athena/activity/public/activity_factory.h" 7 #include "athena/activity/public/activity_factory.h"
8 #include "athena/activity/public/activity_manager.h" 8 #include "athena/activity/public/activity_manager.h"
9 #include "athena/content/public/app_registry.h" 9 #include "athena/content/public/app_registry.h"
10 #include "athena/content/public/content_activity_factory_creator.h" 10 #include "athena/content/public/content_activity_factory_creator.h"
11 #include "athena/content/public/content_app_model_builder.h"
12 #include "athena/env/public/athena_env.h" 11 #include "athena/env/public/athena_env.h"
12 #include "athena/extensions/public/extension_app_model_builder.h"
13 #include "athena/extensions/public/extensions_delegate.h" 13 #include "athena/extensions/public/extensions_delegate.h"
14 #include "athena/home/public/home_card.h" 14 #include "athena/home/public/home_card.h"
15 #include "athena/input/public/input_manager.h" 15 #include "athena/input/public/input_manager.h"
16 #include "athena/main/placeholder.h" 16 #include "athena/main/placeholder.h"
17 #include "athena/main/placeholder.h" 17 #include "athena/main/placeholder.h"
18 #include "athena/main/url_search_provider.h" 18 #include "athena/main/url_search_provider.h"
19 #include "athena/resource_manager/public/resource_manager.h" 19 #include "athena/resource_manager/public/resource_manager.h"
20 #include "athena/screen/public/screen_manager.h" 20 #include "athena/screen/public/screen_manager.h"
21 #include "athena/screen/public/screen_manager.h" 21 #include "athena/screen/public/screen_manager.h"
22 #include "athena/system/public/system_ui.h" 22 #include "athena/system/public/system_ui.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 athena::WindowManager::Create(); 124 athena::WindowManager::Create();
125 athena::AppRegistry::Create(); 125 athena::AppRegistry::Create();
126 SetupBackgroundImage(); 126 SetupBackgroundImage();
127 127
128 athena::ScreenManager::Get()->GetContext()->SetProperty( 128 athena::ScreenManager::Get()->GetContext()->SetProperty(
129 kAthenaEnvStateKey, env_state); 129 kAthenaEnvStateKey, env_state);
130 } 130 }
131 131
132 void StartAthenaSessionWithContext(content::BrowserContext* context) { 132 void StartAthenaSessionWithContext(content::BrowserContext* context) {
133 StartAthenaSession(athena::CreateContentActivityFactory(), 133 StartAthenaSession(athena::CreateContentActivityFactory(),
134 new athena::ContentAppModelBuilder(context)); 134 new athena::ExtensionAppModelBuilder(context));
135 athena::VirtualKeyboardManager::Create(context); 135 athena::VirtualKeyboardManager::Create(context);
136 athena::HomeCard::Get()->RegisterSearchProvider( 136 athena::HomeCard::Get()->RegisterSearchProvider(
137 new athena::UrlSearchProvider(context)); 137 new athena::UrlSearchProvider(context));
138 AthenaEnvState* env_state = 138 AthenaEnvState* env_state =
139 athena::ScreenManager::Get()->GetContext()->GetProperty( 139 athena::ScreenManager::Get()->GetContext()->GetProperty(
140 kAthenaEnvStateKey); 140 kAthenaEnvStateKey);
141 141
142 env_state->virtual_keyboard_observer.reset(new VirtualKeyboardObserver); 142 env_state->virtual_keyboard_observer.reset(new VirtualKeyboardObserver);
143 CreateTestPages(context); 143 CreateTestPages(context);
144 } 144 }
(...skipping 16 matching lines...) Expand all
161 athena::SystemUI::Shutdown(); 161 athena::SystemUI::Shutdown();
162 athena::ScreenManager::Shutdown(); 162 athena::ScreenManager::Shutdown();
163 athena::InputManager::Shutdown(); 163 athena::InputManager::Shutdown();
164 athena::ExtensionsDelegate::Shutdown(); 164 athena::ExtensionsDelegate::Shutdown();
165 athena::AthenaEnv::Shutdown(); 165 athena::AthenaEnv::Shutdown();
166 166
167 delete views::ViewsDelegate::views_delegate; 167 delete views::ViewsDelegate::views_delegate;
168 } 168 }
169 169
170 } // namespace athena 170 } // namespace athena
OLDNEW
« no previous file with comments | « athena/extensions/public/extension_app_model_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698