From 9a83ea0929d9d68ce175ce1ac968f6ebcd91152d Mon Sep 17 00:00:00 2001 From: "yoz@chromium.org" Date: Thu, 3 Oct 2013 19:13:26 +0000 Subject: Refactor PermissionSet to move chrome-specific host checks to ChromeExtensionsClient. Combine GetChromeSchemeHosts and GetDistinctHostsForDisplay logic for special permission messages for chrome://favicon into GetSpecialHostPermissionWarnings. BUG=298586 Review URL: https://codereview.chromium.org/25713006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226812 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/chrome_extensions_client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/common/extensions/chrome_extensions_client.h') diff --git a/chrome/common/extensions/chrome_extensions_client.h b/chrome/common/extensions/chrome_extensions_client.h index a74a890..4f14a9c 100644 --- a/chrome/common/extensions/chrome_extensions_client.h +++ b/chrome/common/extensions/chrome_extensions_client.h @@ -25,6 +25,10 @@ class ChromeExtensionsClient : public ExtensionsClient { virtual void RegisterManifestHandlers() const OVERRIDE; virtual FeatureProvider* GetFeatureProviderByName(const std::string& name) const OVERRIDE; + virtual void FilterHostPermissions( + const URLPatternSet& hosts, + URLPatternSet* new_hosts, + std::set* messages) const OVERRIDE; // Get the LazyInstance for ChromeExtensionsClient. static ChromeExtensionsClient* GetInstance(); -- cgit v1.1