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

Side by Side Diff: extensions/shell/browser/default_shell_browser_main_delegate.cc

Issue 480353006: Separate athena's startup process from AppShell's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698