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

Unified Diff: athena/main/athena_launcher.cc

Issue 316323002: Introduces ActivityFactory for SampleActivity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: athena/main/athena_launcher.cc
diff --git a/athena/main/athena_launcher.cc b/athena/main/athena_launcher.cc
index 7e88e78994bb2e872a6b2f2caab91f064b2a3828..89e845210a4c3e2e816efa0e06d3426c0e493622 100644
--- a/athena/main/athena_launcher.cc
+++ b/athena/main/athena_launcher.cc
@@ -35,7 +35,8 @@ DEFINE_OWNED_WINDOW_PROPERTY_KEY(athena::RootWindowState,
kRootWindowStateKey,
NULL);
-void StartAthena(aura::Window* root_window) {
+void StartAthena(aura::Window* root_window,
+ athena::ActivityFactory* activity_factory) {
#if defined(USE_X11)
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
#endif
@@ -50,10 +51,12 @@ void StartAthena(aura::Window* root_window) {
athena::WindowManager::Create();
athena::HomeCard::Create();
athena::ActivityManager::Create();
+ athena::ActivityFactory::RegisterActivityFactory(activity_factory);
SetupBackgroundImage();
}
void ShutdownAthena() {
+ athena::ActivityFactory::Shutdown();
athena::ActivityManager::Shutdown();
athena::HomeCard::Shutdown();
athena::WindowManager::Shutdown();

Powered by Google App Engine
This is Rietveld 408576698