diff options
author | tessamac@chromium.org <tessamac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:27:51 +0000 |
---|---|---|
committer | tessamac@chromium.org <tessamac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:27:51 +0000 |
commit | d7d4a404580f67dde70b993cac5de8f12471ab19 (patch) | |
tree | 772613b3133e924b029b07d2148961e953a59b44 /chrome/common/extensions/extension.h | |
parent | a61508e5901304418d0c861a79b788c6fd74a997 (diff) | |
download | chromium_src-d7d4a404580f67dde70b993cac5de8f12471ab19.zip chromium_src-d7d4a404580f67dde70b993cac5de8f12471ab19.tar.gz chromium_src-d7d4a404580f67dde70b993cac5de8f12471ab19.tar.bz2 |
Update GetDistinctHost to prefer .com, .net, and .org when de-duping.
BUG=72732
TEST=trybot, unit_tests, permissions warning for https://chrome.google.com/extensions/detail/pjmjjdikcijaponjlhnibejonnjlfohg
Review URL: http://codereview.chromium.org/6596085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r-- | chrome/common/extensions/extension.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index 49850aa..498ec66 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -146,8 +146,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // present in the manifest to make it as easy as possible to process by // users. In particular we disregard the scheme and path components of // URLPatterns and de-dupe the result, which includes filtering out common - // hosts with differing RCDs. (NOTE: when de-duping hosts with common RCDs, - // the first pattern is returned and the rest discarded) + // hosts with differing RCDs (aka Registry Controlled Domains, most of which + // are Top Level Domains but also include exceptions like co.uk). + // NOTE: when de-duping hosts the preferred RCD will be returned, given this + // order of preference: .com, .net, .org, first in list. static std::vector<std::string> GetDistinctHostsForDisplay( const URLPatternList& list); |