OLD | NEW |
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 "extensions/shell/common/shell_extensions_client.h" | 5 #include "extensions/shell/common/shell_extensions_client.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "extensions/common/api/generated_schemas.h" | 9 #include "extensions/common/api/generated_schemas.h" |
10 #include "extensions/common/api/sockets/sockets_manifest_handler.h" | 10 #include "extensions/common/api/sockets/sockets_manifest_handler.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 PermissionsInfo::GetInstance()->AddProvider(extensions_api_permissions_); | 98 PermissionsInfo::GetInstance()->AddProvider(extensions_api_permissions_); |
99 } | 99 } |
100 | 100 |
101 const PermissionMessageProvider& | 101 const PermissionMessageProvider& |
102 ShellExtensionsClient::GetPermissionMessageProvider() const { | 102 ShellExtensionsClient::GetPermissionMessageProvider() const { |
103 NOTIMPLEMENTED(); | 103 NOTIMPLEMENTED(); |
104 return g_permission_message_provider.Get(); | 104 return g_permission_message_provider.Get(); |
105 } | 105 } |
106 | 106 |
| 107 const std::string ShellExtensionsClient::GetProductName() { |
| 108 return "app_shell"; |
| 109 } |
| 110 |
107 scoped_ptr<FeatureProvider> ShellExtensionsClient::CreateFeatureProvider( | 111 scoped_ptr<FeatureProvider> ShellExtensionsClient::CreateFeatureProvider( |
108 const std::string& name) const { | 112 const std::string& name) const { |
109 scoped_ptr<FeatureProvider> provider; | 113 scoped_ptr<FeatureProvider> provider; |
110 scoped_ptr<JSONFeatureProviderSource> source( | 114 scoped_ptr<JSONFeatureProviderSource> source( |
111 CreateFeatureProviderSource(name)); | 115 CreateFeatureProviderSource(name)); |
112 if (name == "api") { | 116 if (name == "api") { |
113 provider.reset(new BaseFeatureProvider(source->dictionary(), | 117 provider.reset(new BaseFeatureProvider(source->dictionary(), |
114 CreateFeature<APIFeature>)); | 118 CreateFeature<APIFeature>)); |
115 } else if (name == "manifest") { | 119 } else if (name == "manifest") { |
116 provider.reset(new BaseFeatureProvider(source->dictionary(), | 120 provider.reset(new BaseFeatureProvider(source->dictionary(), |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 199 |
196 void ShellExtensionsClient::RegisterAPISchemaResources( | 200 void ShellExtensionsClient::RegisterAPISchemaResources( |
197 ExtensionAPI* api) const { | 201 ExtensionAPI* api) const { |
198 } | 202 } |
199 | 203 |
200 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { | 204 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { |
201 return true; | 205 return true; |
202 } | 206 } |
203 | 207 |
204 } // namespace extensions | 208 } // namespace extensions |
OLD | NEW |