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

Unified Diff: athena/main/athena_main.cc

Issue 308783002: Removes the dependency to WMTestHelper from app shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/browser/shell_desktop_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/athena_main.cc
diff --git a/athena/main/athena_main.cc b/athena/main/athena_main.cc
index 692f80d1f10b3e96a2e6898e95a5947a795d83cb..347e9f8baec609ef738410cd416dc9404c8e55fa 100644
--- a/athena/main/athena_main.cc
+++ b/athena/main/athena_main.cc
@@ -19,15 +19,20 @@ class AthenaBrowserMainDelegate : public apps::ShellBrowserMainDelegate {
// apps::ShellBrowserMainDelegate:
virtual void Start(content::BrowserContext* context) OVERRIDE {
- athena::StartAthena(apps::ShellDesktopController::instance()
- ->GetWindowTreeHost()
- ->window());
+ athena::StartAthena(
+ apps::ShellDesktopController::instance()->host()->window());
CreateTestWindows();
CreateTestPages(context);
}
virtual void Shutdown() OVERRIDE { athena::ShutdownAthena(); }
+ virtual apps::ShellDesktopController* CreateDesktopController() OVERRIDE {
+ // TODO(mukai): create Athena's own ShellDesktopController subclass so that
+ // it can initialize its own window manager logic.
+ return new apps::ShellDesktopController();
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(AthenaBrowserMainDelegate);
};
« no previous file with comments | « apps/shell/browser/shell_desktop_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698