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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 } | 186 } |
187 | 187 |
188 void ShellExtensionsClient::RegisterAPISchemaResources( | 188 void ShellExtensionsClient::RegisterAPISchemaResources( |
189 ExtensionAPI* api) const { | 189 ExtensionAPI* api) const { |
190 } | 190 } |
191 | 191 |
192 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { | 192 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { |
193 return true; | 193 return true; |
194 } | 194 } |
195 | 195 |
| 196 std::string ShellExtensionsClient::GetWebstoreBaseURL() const { |
| 197 return extension_urls::kChromeWebstoreBaseURL; |
| 198 } |
| 199 |
| 200 std::string ShellExtensionsClient::GetWebstoreUpdateURL() const { |
| 201 return extension_urls::kChromeWebstoreUpdateURL; |
| 202 } |
| 203 |
| 204 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { |
| 205 // TODO(rockot): Maybe we want to do something else here. For now we accept |
| 206 // any URL as a blacklist URL because we don't really care. |
| 207 return true; |
| 208 } |
| 209 |
196 } // namespace extensions | 210 } // namespace extensions |
OLD | NEW |