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

Unified Diff: trunk/src/chrome/browser/safe_browsing/safe_browsing_database.cc

Issue 16398002: Revert 203400 "Add a killswitch for CSD malware IP match and rep..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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: trunk/src/chrome/browser/safe_browsing/safe_browsing_database.cc
===================================================================
--- trunk/src/chrome/browser/safe_browsing/safe_browsing_database.cc (revision 204084)
+++ trunk/src/chrome/browser/safe_browsing/safe_browsing_database.cc (working copy)
@@ -70,12 +70,6 @@
const char kWhitelistKillSwitchUrl[] =
"sb-ssl.google.com/safebrowsing/csd/killswitch"; // Don't change this!
-// If the hash of this exact expression is on a whitelist then the
-// malware IP blacklisting feature will be disabled in csd.
-// Don't change this!
-const char kMalwareIPKillSwitchUrl[] =
- "sb-ssl.google.com/safebrowsing/csd/killswitch_malware";
-
// To save space, the incoming |chunk_id| and |list_id| are combined
// into an |encoded_chunk_id| for storage by shifting the |list_id|
// into the low-order bits. These functions decode that information.
@@ -1614,12 +1608,3 @@
whitelist->first.swap(new_whitelist);
}
}
-
-bool SafeBrowsingDatabaseNew::MalwareIPMatchKillSwitchOn() {
- SBFullHash malware_kill_switch;
- crypto::SHA256HashString(kMalwareIPKillSwitchUrl, &malware_kill_switch,
- sizeof(malware_kill_switch));
- std::vector<SBFullHash> full_hashes;
- full_hashes.push_back(malware_kill_switch);
- return ContainsWhitelistedHashes(csd_whitelist_, full_hashes);
-};

Powered by Google App Engine
This is Rietveld 408576698