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

Unified Diff: extensions/shell/browser/default_shell_browser_main_delegate.cc

Issue 696063008: Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-aura implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: + Created 6 years, 1 month 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 | « extensions/shell/browser/DEPS ('k') | extensions/shell/browser/desktop_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/default_shell_browser_main_delegate.cc
diff --git a/extensions/shell/browser/default_shell_browser_main_delegate.cc b/extensions/shell/browser/default_shell_browser_main_delegate.cc
index 877926b21026478b4094ea3d1eba033140f4e787..978d27378d9f0887786651fe96676732ca7f2076 100644
--- a/extensions/shell/browser/default_shell_browser_main_delegate.cc
+++ b/extensions/shell/browser/default_shell_browser_main_delegate.cc
@@ -9,9 +9,12 @@
#include "base/files/file_util.h"
#include "base/strings/string_tokenizer.h"
#include "extensions/common/switches.h"
-#include "extensions/shell/browser/shell_desktop_controller.h"
#include "extensions/shell/browser/shell_extension_system.h"
+#if defined(USE_AURA)
+#include "extensions/shell/browser/shell_desktop_controller_aura.h"
+#endif
+
namespace extensions {
DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() {
@@ -62,7 +65,11 @@ void DefaultShellBrowserMainDelegate::Shutdown() {
}
DesktopController* DefaultShellBrowserMainDelegate::CreateDesktopController() {
- return new ShellDesktopController();
+#if defined(USE_AURA)
+ return new ShellDesktopControllerAura();
+#else
+ return NULL;
+#endif
}
} // namespace extensions
« no previous file with comments | « extensions/shell/browser/DEPS ('k') | extensions/shell/browser/desktop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698