| Index: chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
|
| index 00c6347ae36847f98441ef2f1ed3b6e9f5423fa3..ee9df01e3d2a03c1f636454cdc0c2e68cf77076b 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
|
| @@ -197,6 +197,15 @@ public class UrlUtilities {
|
| return nativeGetDomainAndRegistry(uri, includePrivateRegistries);
|
| }
|
|
|
| + /**
|
| + * @param url A URL.
|
| + * @return Whether a given URL is one of [...]google.TLD or [...]youtube.TLD URLs.
|
| + */
|
| + public static boolean isGooglePropertyUrl(String url) {
|
| + if (TextUtils.isEmpty(url)) return false;
|
| + return nativeIsGooglePropertyUrl(url);
|
| + }
|
| +
|
| private static native boolean nativeSameDomainOrHost(String primaryUrl, String secondaryUrl,
|
| boolean includePrivateRegistries);
|
| private static native String nativeGetDomainAndRegistry(String url,
|
| @@ -204,4 +213,5 @@ public class UrlUtilities {
|
| public static native boolean nativeIsGoogleSearchUrl(String url);
|
| public static native boolean nativeIsGoogleHomePageUrl(String url);
|
| public static native String nativeFixupUrl(String url, String desiredTld);
|
| + private static native boolean nativeIsGooglePropertyUrl(String url);
|
| }
|
|
|