Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: extensions/shell/common/shell_extensions_client.cc

Issue 2379763003: Extract permission alias info from PermissionsProvider (Closed)
Patch Set: not nesting Alias in AliasProvider Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698