OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/api/management/management_api.h" | 5 #include "extensions/browser/api/management/management_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "extensions/common/permissions/permissions_data.h" | 41 #include "extensions/common/permissions/permissions_data.h" |
42 #include "extensions/common/url_pattern.h" | 42 #include "extensions/common/url_pattern.h" |
43 | 43 |
44 using base::IntToString; | 44 using base::IntToString; |
45 using content::BrowserThread; | 45 using content::BrowserThread; |
46 | 46 |
47 namespace keys = extension_management_api_constants; | 47 namespace keys = extension_management_api_constants; |
48 | 48 |
49 namespace extensions { | 49 namespace extensions { |
50 | 50 |
51 namespace management = core_api::management; | 51 namespace management = api::management; |
52 | 52 |
53 namespace { | 53 namespace { |
54 | 54 |
55 typedef std::vector<linked_ptr<management::ExtensionInfo>> ExtensionInfoList; | 55 typedef std::vector<linked_ptr<management::ExtensionInfo>> ExtensionInfoList; |
56 typedef std::vector<linked_ptr<management::IconInfo>> IconInfoList; | 56 typedef std::vector<linked_ptr<management::IconInfo>> IconInfoList; |
57 | 57 |
58 enum AutoConfirmForTest { DO_NOT_SKIP = 0, PROCEED, ABORT }; | 58 enum AutoConfirmForTest { DO_NOT_SKIP = 0, PROCEED, ABORT }; |
59 | 59 |
60 AutoConfirmForTest auto_confirm_for_test = DO_NOT_SKIP; | 60 AutoConfirmForTest auto_confirm_for_test = DO_NOT_SKIP; |
61 | 61 |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 ManagementAPI::GetFactoryInstance() { | 905 ManagementAPI::GetFactoryInstance() { |
906 return g_factory.Pointer(); | 906 return g_factory.Pointer(); |
907 } | 907 } |
908 | 908 |
909 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { | 909 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { |
910 management_event_router_.reset(new ManagementEventRouter(browser_context_)); | 910 management_event_router_.reset(new ManagementEventRouter(browser_context_)); |
911 EventRouter::Get(browser_context_)->UnregisterObserver(this); | 911 EventRouter::Get(browser_context_)->UnregisterObserver(this); |
912 } | 912 } |
913 | 913 |
914 } // namespace extensions | 914 } // namespace extensions |
OLD | NEW |