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

Unified Diff: content/browser/resource_context.cc

Issue 7134017: Make safe browsing work in a multi-profile environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« content/browser/resource_context.h ('K') | « content/browser/resource_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resource_context.cc
===================================================================
--- content/browser/resource_context.cc (revision 90024)
+++ content/browser/resource_context.cc (working copy)
@@ -133,6 +133,17 @@
host_zoom_map_ = host_zoom_map;
}
+bool ResourceContext::safe_browsing_enabled() const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ EnsureInitialized();
+ return safe_browsing_enabled_;
+}
+
+void ResourceContext::set_safe_browsing_enabled(bool safe_browsing_enabled) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ safe_browsing_enabled_ = safe_browsing_enabled;
+}
+
const base::WeakPtr<prerender::PrerenderManager>&
ResourceContext::prerender_manager() const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
« content/browser/resource_context.h ('K') | « content/browser/resource_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698