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

Side by Side Diff: athena/extensions/test/test_extensions_delegate.cc

Issue 653563004: NULL -> nullptr under athena/ (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 | « athena/extensions/shell/url_search_provider.cc ('k') | athena/home/athena_start_page_view.cc » ('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 "athena/extensions/public/extensions_delegate.h" 5 #include "athena/extensions/public/extensions_delegate.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "extensions/browser/install/extension_install_ui.h" 7 #include "extensions/browser/install/extension_install_ui.h"
8 #include "extensions/common/extension_set.h" 8 #include "extensions/common/extension_set.h"
9 9
10 namespace athena { 10 namespace athena {
11 namespace { 11 namespace {
12 12
13 class TestExtensionsDelegate : public ExtensionsDelegate { 13 class TestExtensionsDelegate : public ExtensionsDelegate {
14 public: 14 public:
15 TestExtensionsDelegate() {} 15 TestExtensionsDelegate() {}
16 16
17 virtual ~TestExtensionsDelegate() {} 17 virtual ~TestExtensionsDelegate() {}
18 18
19 private: 19 private:
20 // ExtensionsDelegate: 20 // ExtensionsDelegate:
21 virtual content::BrowserContext* GetBrowserContext() const override { 21 virtual content::BrowserContext* GetBrowserContext() const override {
22 return NULL; 22 return nullptr;
23 } 23 }
24 virtual const extensions::ExtensionSet& GetInstalledExtensions() override { 24 virtual const extensions::ExtensionSet& GetInstalledExtensions() override {
25 return shell_extensions_; 25 return shell_extensions_;
26 } 26 }
27 virtual bool LaunchApp(const std::string& app_id) override { return true; } 27 virtual bool LaunchApp(const std::string& app_id) override { return true; }
28 virtual bool UnloadApp(const std::string& app_id) override { return false; } 28 virtual bool UnloadApp(const std::string& app_id) override { return false; }
29 29
30 virtual scoped_ptr<extensions::ExtensionInstallUI> CreateExtensionInstallUI() 30 virtual scoped_ptr<extensions::ExtensionInstallUI> CreateExtensionInstallUI()
31 override { 31 override {
32 return scoped_ptr<extensions::ExtensionInstallUI>(); 32 return scoped_ptr<extensions::ExtensionInstallUI>();
33 } 33 }
34 34
35 extensions::ExtensionSet shell_extensions_; 35 extensions::ExtensionSet shell_extensions_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(TestExtensionsDelegate); 37 DISALLOW_COPY_AND_ASSIGN(TestExtensionsDelegate);
38 }; 38 };
39 39
40 } // namespace 40 } // namespace
41 41
42 // static 42 // static
43 void ExtensionsDelegate::CreateExtensionsDelegateForTest() { 43 void ExtensionsDelegate::CreateExtensionsDelegateForTest() {
44 new TestExtensionsDelegate(); 44 new TestExtensionsDelegate();
45 } 45 }
46 46
47 } // namespace athena 47 } // namespace athena
OLDNEW
« no previous file with comments | « athena/extensions/shell/url_search_provider.cc ('k') | athena/home/athena_start_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698