| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "extensions/common/api/generated_schemas.h" | 10 #include "extensions/common/api/generated_schemas.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 ShellExtensionsClient::~ShellExtensionsClient() { | 81 ShellExtensionsClient::~ShellExtensionsClient() { |
| 82 } | 82 } |
| 83 | 83 |
| 84 void ShellExtensionsClient::Initialize() { | 84 void ShellExtensionsClient::Initialize() { |
| 85 RegisterCommonManifestHandlers(); | 85 RegisterCommonManifestHandlers(); |
| 86 ManifestHandler::FinalizeRegistration(); | 86 ManifestHandler::FinalizeRegistration(); |
| 87 // TODO(jamescook): Do we need to whitelist any extensions? | 87 // TODO(jamescook): Do we need to whitelist any extensions? |
| 88 | 88 |
| 89 PermissionsInfo::GetInstance()->AddProvider(extensions_api_permissions_); | 89 PermissionsInfo::GetInstance()->AddProvider(extensions_api_permissions_, |
| 90 extensions_alias_provider_); |
| 90 } | 91 } |
| 91 | 92 |
| 92 const PermissionMessageProvider& | 93 const PermissionMessageProvider& |
| 93 ShellExtensionsClient::GetPermissionMessageProvider() const { | 94 ShellExtensionsClient::GetPermissionMessageProvider() const { |
| 94 NOTIMPLEMENTED(); | 95 NOTIMPLEMENTED(); |
| 95 return g_permission_message_provider.Get(); | 96 return g_permission_message_provider.Get(); |
| 96 } | 97 } |
| 97 | 98 |
| 98 const std::string ShellExtensionsClient::GetProductName() { | 99 const std::string ShellExtensionsClient::GetProductName() { |
| 99 return "app_shell"; | 100 return "app_shell"; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 return extension_urls::kChromeWebstoreUpdateURL; | 188 return extension_urls::kChromeWebstoreUpdateURL; |
| 188 } | 189 } |
| 189 | 190 |
| 190 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { | 191 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { |
| 191 // TODO(rockot): Maybe we want to do something else here. For now we accept | 192 // TODO(rockot): Maybe we want to do something else here. For now we accept |
| 192 // any URL as a blacklist URL because we don't really care. | 193 // any URL as a blacklist URL because we don't really care. |
| 193 return true; | 194 return true; |
| 194 } | 195 } |
| 195 | 196 |
| 196 } // namespace extensions | 197 } // namespace extensions |
| OLD | NEW |