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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 PermissionIDSet GetAllPermissionIDs( | 57 PermissionIDSet GetAllPermissionIDs( |
58 const PermissionSet& permissions, | 58 const PermissionSet& permissions, |
59 Manifest::Type extension_type) const override { | 59 Manifest::Type extension_type) const override { |
60 return PermissionIDSet(); | 60 return PermissionIDSet(); |
61 } | 61 } |
62 | 62 |
63 private: | 63 private: |
64 DISALLOW_COPY_AND_ASSIGN(ShellPermissionMessageProvider); | 64 DISALLOW_COPY_AND_ASSIGN(ShellPermissionMessageProvider); |
65 }; | 65 }; |
66 | 66 |
67 base::LazyInstance<ShellPermissionMessageProvider> | 67 base::LazyInstance<ShellPermissionMessageProvider>::DestructorAtExit |
68 g_permission_message_provider = LAZY_INSTANCE_INITIALIZER; | 68 g_permission_message_provider = LAZY_INSTANCE_INITIALIZER; |
69 | 69 |
70 } // namespace | 70 } // namespace |
71 | 71 |
72 ShellExtensionsClient::ShellExtensionsClient() | 72 ShellExtensionsClient::ShellExtensionsClient() |
73 : extensions_api_permissions_(ExtensionsAPIPermissions()), | 73 : extensions_api_permissions_(ExtensionsAPIPermissions()), |
74 webstore_base_url_(extension_urls::kChromeWebstoreBaseURL), | 74 webstore_base_url_(extension_urls::kChromeWebstoreBaseURL), |
75 webstore_update_url_(extension_urls::kChromeWebstoreUpdateURL) {} | 75 webstore_update_url_(extension_urls::kChromeWebstoreUpdateURL) {} |
76 | 76 |
77 ShellExtensionsClient::~ShellExtensionsClient() { | 77 ShellExtensionsClient::~ShellExtensionsClient() { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 return webstore_update_url_; | 184 return webstore_update_url_; |
185 } | 185 } |
186 | 186 |
187 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { | 187 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { |
188 // TODO(rockot): Maybe we want to do something else here. For now we accept | 188 // TODO(rockot): Maybe we want to do something else here. For now we accept |
189 // any URL as a blacklist URL because we don't really care. | 189 // any URL as a blacklist URL because we don't really care. |
190 return true; | 190 return true; |
191 } | 191 } |
192 | 192 |
193 } // namespace extensions | 193 } // namespace extensions |
OLD | NEW |