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

Unified Diff: components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java

Issue 2172203002: Enable Popular Sites in Android demo mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: x Created 4 years, 5 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
« no previous file with comments | « components/ntp_tiles/android/BUILD.gn ('k') | tools/android/eclipse/.classpath » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3dc3ed73dac134dc9be42e672bf35bc7fb3b9b2a
--- /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 isPopularSitesEnabled() {
Marc Treib 2016/07/22 12:59:03 As Chris says, this isn't used anywhere. The name
sfiera 2016/07/22 13:01:48 Or isDemoUser() and let the C++ code figure it out
Bernhard Bauer 2016/07/22 14:37:38 Yes, but all that means is that this will probably
Bernhard Bauer 2016/07/22 14:37:38 Done.
+ return ApiCompatibilityUtils.isDemoUser(ContextUtils.getApplicationContext());
+ }
+
+}
« no previous file with comments | « components/ntp_tiles/android/BUILD.gn ('k') | tools/android/eclipse/.classpath » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698