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

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

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/shell/browser/default_shell_browser_main_delegate.h ('k') | apps/shell/browser/dns_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/default_shell_browser_main_delegate.cc
diff --git a/apps/shell/browser/default_shell_browser_main_delegate.cc b/apps/shell/browser/default_shell_browser_main_delegate.cc
deleted file mode 100644
index df2ff4d756b5aff7b5ba5330e6308056e4cc3ce3..0000000000000000000000000000000000000000
--- a/apps/shell/browser/default_shell_browser_main_delegate.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "apps/shell/browser/default_shell_browser_main_delegate.h"
-
-#include "apps/shell/browser/default_shell_app_window_controller.h"
-#include "apps/shell/browser/shell_desktop_controller.h"
-#include "apps/shell/browser/shell_extension_system.h"
-#include "apps/shell/common/switches.h"
-#include "base/command_line.h"
-#include "base/file_util.h"
-#include "base/files/file_path.h"
-
-namespace apps {
-
-DefaultShellBrowserMainDelegate::DefaultShellBrowserMainDelegate() {
-}
-
-DefaultShellBrowserMainDelegate::~DefaultShellBrowserMainDelegate() {
-}
-
-void DefaultShellBrowserMainDelegate::Start(
- content::BrowserContext* browser_context) {
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kAppShellAppPath)) {
- base::FilePath app_dir(
- command_line->GetSwitchValueNative(switches::kAppShellAppPath));
- base::FilePath app_absolute_dir = base::MakeAbsoluteFilePath(app_dir);
-
- extensions::ShellExtensionSystem* extension_system =
- static_cast<extensions::ShellExtensionSystem*>(
- extensions::ExtensionSystem::Get(browser_context));
- if (!extension_system->LoadApp(app_absolute_dir))
- return;
- extension_system->LaunchApp();
- } else {
- LOG(ERROR) << "--" << switches::kAppShellAppPath
- << " unset; boredom is in your future";
- }
-}
-
-void DefaultShellBrowserMainDelegate::Shutdown() {
-}
-
-ShellDesktopController*
-DefaultShellBrowserMainDelegate::CreateDesktopController() {
- ShellDesktopController* desktop = new ShellDesktopController();
- desktop->SetAppWindowController(new DefaultShellAppWindowController(desktop));
- return desktop;
-}
-
-} // namespace apps
« no previous file with comments | « apps/shell/browser/default_shell_browser_main_delegate.h ('k') | apps/shell/browser/dns_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698