Index: athena/content/content_activity_factory.cc |
diff --git a/athena/content/content_activity_factory.cc b/athena/content/content_activity_factory.cc |
index ab6ecf712b5142faeeccaa2248dfa8181284bdfa..cd43a1c7b10e3275e8c9cc5f39de8164569a6f93 100644 |
--- a/athena/content/content_activity_factory.cc |
+++ b/athena/content/content_activity_factory.cc |
@@ -30,4 +30,23 @@ Activity* ContentActivityFactory::CreateWebActivity( |
return activity; |
} |
+Activity* ContentActivityFactory::CreateAppActivity( |
+ content::BrowserContext* browser_context, |
+ const std::string& app_id) { |
+ // TODO(mukai): port the extension system and launch the app actually. |
+ GURL url; |
+ if (app_id == "mail") |
+ url = GURL("https://mail.google.com/"); |
+ else if (app_id == "calendar") |
+ url = GURL("https://calendar.google.com/"); |
+ else if (app_id == "video") |
+ url = GURL("http://youtube.com/"); |
+ else if (app_id == "music") |
+ url = GURL("https://play.google.com/music"); |
+ else if (app_id == "contact") |
+ url = GURL("https://contact.google.com/"); |
+ DCHECK(!url.is_empty()); |
oshima
2014/06/06 23:39:00
how about
else
LOG(FATAL) << "unknown app id:"
Jun Mukai
2014/06/09 20:33:13
Done.
|
+ return CreateWebActivity(browser_context, url); |
+} |
+ |
} // namespace athena |