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/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "extensions/shell/browser/default_shell_app_window_controller.h" | |
11 #include "extensions/shell/browser/shell_desktop_controller.h" | 10 #include "extensions/shell/browser/shell_desktop_controller.h" |
12 #include "extensions/shell/browser/shell_extension_system.h" | 11 #include "extensions/shell/browser/shell_extension_system.h" |
13 #include "extensions/shell/common/switches.h" | 12 #include "extensions/shell/common/switches.h" |
14 | 13 |
15 namespace extensions { | 14 namespace extensions { |
16 | 15 |
17 DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() { | 16 DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() { |
18 } | 17 } |
19 | 18 |
20 DefaultShellBrowserMainDelegate::~DefaultShellBrowserMainDelegate() { | 19 DefaultShellBrowserMainDelegate::~DefaultShellBrowserMainDelegate() { |
(...skipping 14 matching lines...) Expand all Loading... |
35 extension_system->LaunchApp(); | 34 extension_system->LaunchApp(); |
36 } else { | 35 } else { |
37 LOG(ERROR) << "--" << switches::kAppShellAppPath | 36 LOG(ERROR) << "--" << switches::kAppShellAppPath |
38 << " unset; boredom is in your future"; | 37 << " unset; boredom is in your future"; |
39 } | 38 } |
40 } | 39 } |
41 | 40 |
42 void DefaultShellBrowserMainDelegate::Shutdown() { | 41 void DefaultShellBrowserMainDelegate::Shutdown() { |
43 } | 42 } |
44 | 43 |
45 ShellDesktopController* | 44 DesktopController* DefaultShellBrowserMainDelegate::CreateDesktopController() { |
46 DefaultShellBrowserMainDelegate::CreateDesktopController() { | 45 return new ShellDesktopController(); |
47 ShellDesktopController* desktop = new ShellDesktopController(); | |
48 desktop->SetAppWindowController(new DefaultShellAppWindowController(desktop)); | |
49 return desktop; | |
50 } | 46 } |
51 | 47 |
52 } // namespace extensions | 48 } // namespace extensions |
OLD | NEW |