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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java

Issue 2669873002: [ImportantSites] Implementing dialog level blacklisting and blacklist expiration (Closed)
Patch Set: Comments Created 3 years, 10 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: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
index 82b5794fe09fbd57558e3f0db96f5fc04e46ba7a..4cecbcbdd6af4ad3b222fcf37dff6a14961ff158 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
@@ -594,9 +594,9 @@ public class ClearBrowsingDataPreferences extends PreferenceFragment
}
@Override
- public void onImportantRegisterableDomainsReady(
- String[] domains, String[] exampleOrigins, int[] importantReasons) {
- if (domains == null) return;
+ public void onImportantRegisterableDomainsReady(String[] domains, String[] exampleOrigins,
+ int[] importantReasons, boolean dialogBlacklisted) {
dominickn 2017/02/03 21:14:51 Nit: dialogDisabled
dmurph 2017/02/04 00:52:25 Done.
+ if (domains == null || dialogBlacklisted) return;
// mMaxImportantSites is a constant on the C++ side. While 0 is valid, use 1 as the minimum
// because histogram code assumes a min >= 1; the underflow bucket will record the 0s.
RecordHistogram.recordLinearCountHistogram("History.ClearBrowsingData.NumImportant",

Powered by Google App Engine
This is Rietveld 408576698