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

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

Issue 1110723002: Split to SafeBrowsingDatabaseManager into Local* and Remote*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review. Tweak comments and list initializer. Created 5 years, 7 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.cc
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc
index ab30f2b1f93430934eb155ef9ea9b8be8b4cc142..cb87b59d9f52f79154862289d123d4a94ed9b772 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc
+++ b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc
@@ -1,6 +1,6 @@
- // Copyright (c) 2012 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.
+// Copyright (c) 2012 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.
#include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h"
@@ -14,7 +14,7 @@
#error Need to define safe_browsing mode.
#endif
-#if defined(SAFE_BROWSING_DB_LOCAL)
+#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
#include "chrome/browser/renderer_host/safe_browsing_resource_throttle.h"
#endif
@@ -40,8 +40,8 @@ ResourceThrottle* SafeBrowsingResourceThrottleFactory::Create(
return factory_->CreateResourceThrottle(
request, resource_context, resource_type, service);
-#if defined(SAFE_BROWSING_DB_LOCAL)
- // Throttle consults a local database before proceeding.
+#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
+ // Throttle consults a local or remote database before proceeding.
return new SafeBrowsingResourceThrottle(request, resource_type, service);
#else
return NULL;

Powered by Google App Engine
This is Rietveld 408576698