OLD | NEW |
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 "extensions/shell/browser/default_shell_browser_main_delegate.h" | 5 #include "extensions/shell/browser/default_shell_browser_main_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/strings/string_tokenizer.h" | 10 #include "base/strings/string_tokenizer.h" |
11 #include "extensions/common/switches.h" | 11 #include "extensions/common/switches.h" |
12 #include "extensions/shell/browser/shell_desktop_controller.h" | |
13 #include "extensions/shell/browser/shell_extension_system.h" | 12 #include "extensions/shell/browser/shell_extension_system.h" |
14 | 13 |
| 14 #if defined(USE_AURA) |
| 15 #include "extensions/shell/browser/shell_desktop_controller_aura.h" |
| 16 #endif |
| 17 |
15 namespace extensions { | 18 namespace extensions { |
16 | 19 |
17 DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() { | 20 DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() { |
18 } | 21 } |
19 | 22 |
20 DefaultShellBrowserMainDelegate::~DefaultShellBrowserMainDelegate() { | 23 DefaultShellBrowserMainDelegate::~DefaultShellBrowserMainDelegate() { |
21 } | 24 } |
22 | 25 |
23 void DefaultShellBrowserMainDelegate::Start( | 26 void DefaultShellBrowserMainDelegate::Start( |
24 content::BrowserContext* browser_context) { | 27 content::BrowserContext* browser_context) { |
(...skipping 30 matching lines...) Expand all Loading... |
55 } else { | 58 } else { |
56 LOG(ERROR) << "--" << switches::kLoadApps | 59 LOG(ERROR) << "--" << switches::kLoadApps |
57 << " unset; boredom is in your future"; | 60 << " unset; boredom is in your future"; |
58 } | 61 } |
59 } | 62 } |
60 | 63 |
61 void DefaultShellBrowserMainDelegate::Shutdown() { | 64 void DefaultShellBrowserMainDelegate::Shutdown() { |
62 } | 65 } |
63 | 66 |
64 DesktopController* DefaultShellBrowserMainDelegate::CreateDesktopController() { | 67 DesktopController* DefaultShellBrowserMainDelegate::CreateDesktopController() { |
65 return new ShellDesktopController(); | 68 #if defined(USE_AURA) |
| 69 return new ShellDesktopControllerAura(); |
| 70 #else |
| 71 return NULL; |
| 72 #endif |
66 } | 73 } |
67 | 74 |
68 } // namespace extensions | 75 } // namespace extensions |
OLD | NEW |