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

Side by Side Diff: athena/extensions/shell/extensions_delegate_impl.cc

Issue 634313004: Display dialog when app install succeeds / fails on Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "athena/extensions/public/extensions_delegate.h" 5 #include "athena/extensions/public/extensions_delegate.h"
6 6
7 #include "athena/extensions/shell/athena_shell_app_window_client.h" 7 #include "athena/extensions/shell/athena_shell_app_window_client.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/install/extension_install_ui.h"
9 #include "extensions/common/extension_set.h" 10 #include "extensions/common/extension_set.h"
10 #include "extensions/shell/browser/shell_extension_system.h" 11 #include "extensions/shell/browser/shell_extension_system.h"
11 12
12 namespace athena { 13 namespace athena {
13 namespace { 14 namespace {
14 15
15 class ShellExtensionsDelegate : public ExtensionsDelegate { 16 class ShellExtensionsDelegate : public ExtensionsDelegate {
16 public: 17 public:
17 explicit ShellExtensionsDelegate(content::BrowserContext* context) 18 explicit ShellExtensionsDelegate(content::BrowserContext* context)
18 : context_(context), 19 : context_(context),
(...skipping 15 matching lines...) Expand all
34 shell_extensions_.Insert(extension_system_->extension()); 35 shell_extensions_.Insert(extension_system_->extension());
35 return shell_extensions_; 36 return shell_extensions_;
36 } 37 }
37 virtual bool LaunchApp(const std::string& app_id) override { 38 virtual bool LaunchApp(const std::string& app_id) override {
38 extension_system_->LaunchApp(); 39 extension_system_->LaunchApp();
39 return true; 40 return true;
40 } 41 }
41 42
42 virtual bool UnloadApp(const std::string& app_id) override { return false; } 43 virtual bool UnloadApp(const std::string& app_id) override { return false; }
43 44
45 virtual scoped_ptr<extensions::ExtensionInstallUI> CreateExtensionInstallUI()
46 override {
47 return scoped_ptr<extensions::ExtensionInstallUI>();
48 }
49
44 content::BrowserContext* context_; 50 content::BrowserContext* context_;
45 extensions::ShellExtensionSystem* extension_system_; 51 extensions::ShellExtensionSystem* extension_system_;
46 extensions::ExtensionSet shell_extensions_; 52 extensions::ExtensionSet shell_extensions_;
47 53
48 AthenaShellAppWindowClient app_window_client_; 54 AthenaShellAppWindowClient app_window_client_;
49 55
50 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsDelegate);
51 }; 57 };
52 58
53 } // namespace 59 } // namespace
54 60
55 // static 61 // static
56 void ExtensionsDelegate::CreateExtensionsDelegate( 62 void ExtensionsDelegate::CreateExtensionsDelegate(
57 content::BrowserContext* context) { 63 content::BrowserContext* context) {
58 new ShellExtensionsDelegate(context); 64 new ShellExtensionsDelegate(context);
59 } 65 }
60 66
61 } // namespace athena 67 } // namespace athena
OLDNEW
« no previous file with comments | « athena/extensions/public/extensions_delegate.h ('k') | athena/extensions/test/test_extensions_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698