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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « extensions/shell/browser/DEPS ('k') | extensions/shell/browser/desktop_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« 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