The Blink Rename
Identifiers in Blink now largely follow the standard Chrome style
conventions, with several additional rules:
- web-exposed methods remain namedLikeThis() for consistency with
Javascript bindings.
- method names are never named_in_hacker_case()
- enumerator names are kNamedLikeThis.
This commit was generated by the following process.
1. Running //tools/clang/rewrite_to_chrome_style across the codebase.
2. Apply manual fixes.
3. git cl format
BUG=578344
[email protected]
[email protected]
Change-Id: Ide5d397d3c6a5d973fd0a6f81dccf82561d4bb71
Reviewed-on: https://chromium-review.googlesource.com/472192
Reviewed-by: Blink Reformat <[email protected]>
Cr-Commit-Position: refs/heads/master@{#463139}
diff --git a/content/renderer/webpublicsuffixlist_impl.cc b/content/renderer/webpublicsuffixlist_impl.cc
index 0f58f14..03ba14c 100644
--- a/content/renderer/webpublicsuffixlist_impl.cc
+++ b/content/renderer/webpublicsuffixlist_impl.cc
@@ -11,13 +11,13 @@
WebPublicSuffixListImpl::~WebPublicSuffixListImpl() {
}
-size_t WebPublicSuffixListImpl::getPublicSuffixLength(
+size_t WebPublicSuffixListImpl::GetPublicSuffixLength(
const blink::WebString& host) {
// Blink passes some things that aren't technically hosts like "*.foo", so
// use the permissive variant.
size_t result =
net::registry_controlled_domains::PermissiveGetHostRegistryLength(
- host.utf8(),
+ host.Utf8(),
net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
return result ? result : host.length();