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

Unified Diff: third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp

Issue 2392653002: reflow comments in platform/{transforms,weborigin} (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp b/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp
index 9835d860813714afc06dbe2012e990968d534890..c9ebd12e32a92cbb91c2428c43df62803c7c4ab5 100644
--- a/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/OriginAccessEntry.cpp
@@ -98,7 +98,8 @@ OriginAccessEntry::OriginAccessEntry(const String& protocol,
m_hostIsPublicSuffix = true;
} else if (subdomainSetting == AllowRegisterableDomains &&
publicSuffixLength) {
- // The "2" in the next line is 1 for the '.', plus a 1-char minimum label length.
+ // The "2" in the next line is 1 for the '.', plus a 1-char minimum label
+ // length.
const size_t dot =
m_host.reverseFind('.', m_host.length() - publicSuffixLength - 2);
if (dot == kNotFound)
@@ -122,7 +123,8 @@ OriginAccessEntry::MatchResult OriginAccessEntry::matchesOrigin(
OriginAccessEntry::MatchResult OriginAccessEntry::matchesDomain(
const SecurityOrigin& origin) const {
ASSERT(origin.host() == origin.host().lower());
- // Special case: Include subdomains and empty host means "all hosts, including ip addresses".
+ // Special case: Include subdomains and empty host means "all hosts, including
+ // ip addresses".
if (m_subdomainSettings != DisallowSubdomains && m_host.isEmpty())
return MatchesOrigin;
@@ -145,7 +147,8 @@ OriginAccessEntry::MatchResult OriginAccessEntry::matchesDomain(
break;
case AllowRegisterableDomains:
- // Fall back to a simple subdomain check if no registerable domain could be found:
+ // Fall back to a simple subdomain check if no registerable domain could
+ // be found:
if (m_registerableDomain.isEmpty()) {
if (!IsSubdomainOfHost(origin.host(), m_host))
return DoesNotMatchOrigin;

Powered by Google App Engine
This is Rietveld 408576698