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

Unified Diff: chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup gn files Created 6 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
Index: chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
index 4a37de440fb6292465ae64926069b4a4507a57c4..7accacbe8aaa8aba48cc45cfaea82756d423240c 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
+++ b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
@@ -18,13 +18,14 @@ namespace net {
class URLRequest;
}
-// Factory for creating a SafeBrowsingResourceThrottle. When FULL_SAFE_BROWSING
-// is enabled, creates a SafeBrowsingResourceThrottle. When MOBILE_SAFE_BROWSING
-// is enabled, the default implementation creates a null resource throttle,
-// therefore, a factory has to be registered before using this.
+// Factory for creating a SafeBrowsingResourceThrottle. When
+// SAFE_BROWSING_DATABASE is enabled, creates a
+// SafeBrowsingResourceThrottle. When only SAFE_BROWSING_SERVICE is enabled, the
+// default implementation creates a null resource throttle, therefore, a factory
+// has to be registered before using this.
class SafeBrowsingResourceThrottleFactory {
public:
-#if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING)
+#if defined(SAFE_BROWSING_SERVICE)
// Registers a factory. Does not take the ownership of the factory. The
// caller has to make sure the factory stays alive and properly destroyed.
static void RegisterFactory(SafeBrowsingResourceThrottleFactory* factory) {

Powered by Google App Engine
This is Rietveld 408576698