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

Unified Diff: components/safe_browsing_db/v4_protocol_manager_util.cc

Issue 2536913002: Small: PVer4: Enable syncing internal lists for Google Chrome builds. (Closed)
Patch Set: Created 4 years, 1 month 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: components/safe_browsing_db/v4_protocol_manager_util.cc
diff --git a/components/safe_browsing_db/v4_protocol_manager_util.cc b/components/safe_browsing_db/v4_protocol_manager_util.cc
index 00937dc7a2d15e2df72529449c67d1d53edddb16..ad56f624147eb15a4b205c02b760b2dd02f84ec1 100644
--- a/components/safe_browsing_db/v4_protocol_manager_util.cc
+++ b/components/safe_browsing_db/v4_protocol_manager_util.cc
@@ -10,6 +10,7 @@
#include "base/sha1.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "build/build_config.h"
#include "crypto/sha2.h"
#include "net/base/escape.h"
#include "net/base/ip_address.h"
@@ -70,6 +71,14 @@ std::ostream& operator<<(std::ostream& os, const ListIdentifier& id) {
return os;
}
+bool EnableInternalLists() {
+#if defined(GOOGLE_CHROME_BUILD)
+ return true;
+#else
+ return false;
+#endif
+}
+
PlatformType GetCurrentPlatformType() {
#if defined(OS_WIN)
return WINDOWS_PLATFORM;

Powered by Google App Engine
This is Rietveld 408576698