| Index: components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java
|
| diff --git a/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java b/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cd33561f501d65fabeba9f3e59894bec88c7a78a
|
| --- /dev/null
|
| +++ b/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.components.ntptiles;
|
| +
|
| +import org.chromium.base.ApiCompatibilityUtils;
|
| +import org.chromium.base.ContextUtils;
|
| +import org.chromium.base.annotations.CalledByNative;
|
| +
|
| +/**
|
| + * Utility class containing Android-specific functionality for the native MostVisitedSites.
|
| + */
|
| +public final class MostVisitedSites {
|
| +
|
| + private MostVisitedSites() {}
|
| +
|
| + @CalledByNative
|
| + private static boolean isPopularSitesForceEnabled() {
|
| + return ApiCompatibilityUtils.isDemoUser(ContextUtils.getApplicationContext());
|
| + }
|
| +
|
| +}
|
|
|