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

Unified Diff: athena/extensions/shell/extensions_delegate_impl.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: athena/extensions/shell/extensions_delegate_impl.cc
diff --git a/athena/extensions/shell/extensions_delegate_impl.cc b/athena/extensions/shell/extensions_delegate_impl.cc
deleted file mode 100644
index dd926a1e43b7f2b095b4cb026a11dc7555f7c1a1..0000000000000000000000000000000000000000
--- a/athena/extensions/shell/extensions_delegate_impl.cc
+++ /dev/null
@@ -1,67 +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 "athena/extensions/public/extensions_delegate.h"
-
-#include "athena/extensions/shell/athena_shell_app_window_client.h"
-#include "base/macros.h"
-#include "extensions/browser/extension_registry.h"
-#include "extensions/browser/install/extension_install_ui.h"
-#include "extensions/common/extension_set.h"
-#include "extensions/shell/browser/shell_extension_system.h"
-
-namespace athena {
-namespace {
-
-class ShellExtensionsDelegate : public ExtensionsDelegate {
- public:
- explicit ShellExtensionsDelegate(content::BrowserContext* context)
- : context_(context),
- extension_system_(static_cast<extensions::ShellExtensionSystem*>(
- extensions::ExtensionSystem::Get(context))) {
- extensions::AppWindowClient::Set(&app_window_client_);
- }
-
- ~ShellExtensionsDelegate() override {
- extensions::AppWindowClient::Set(nullptr);
- }
-
- private:
- // ExtensionsDelegate:
- content::BrowserContext* GetBrowserContext() const override {
- return context_;
- }
-
- const extensions::ExtensionSet& GetInstalledExtensions() override {
- return extensions::ExtensionRegistry::Get(context_)->enabled_extensions();
- }
- bool LaunchApp(const std::string& app_id) override {
- extension_system_->LaunchApp(app_id);
- return true;
- }
-
- bool UnloadApp(const std::string& app_id) override { return false; }
-
- scoped_ptr<extensions::ExtensionInstallUI> CreateExtensionInstallUI()
- override {
- return scoped_ptr<extensions::ExtensionInstallUI>();
- }
-
- content::BrowserContext* context_;
- extensions::ShellExtensionSystem* extension_system_;
-
- AthenaShellAppWindowClient app_window_client_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellExtensionsDelegate);
-};
-
-} // namespace
-
-// static
-void ExtensionsDelegate::CreateExtensionsDelegate(
- content::BrowserContext* context) {
- new ShellExtensionsDelegate(context);
-}
-
-} // namespace athena
« no previous file with comments | « athena/extensions/shell/athena_shell_scheme_classifier.cc ('k') | athena/extensions/shell/shell_search_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698