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

Unified Diff: chrome/browser/memory_purger.cc

Issue 9867002: Fix link error when safe browsing is disabled. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory_purger.cc
diff --git a/chrome/browser/memory_purger.cc b/chrome/browser/memory_purger.cc
index 8e1d9a192c995375e90b01ca91f52a336ac15104..643050bf0fb4715d2bc47d9a5d4678539853f63e 100644
--- a/chrome/browser/memory_purger.cc
+++ b/chrome/browser/memory_purger.cc
@@ -37,7 +37,9 @@ class PurgeMemoryIOHelper
: public base::RefCountedThreadSafe<PurgeMemoryIOHelper> {
public:
PurgeMemoryIOHelper() {
+#if defined(ENABLE_SAFE_BROWSING)
jam 2012/03/27 19:18:35 i think the first two ifdef's aren't needed. in ge
Iain Merrick 2012/03/28 10:25:43 Done.
safe_browsing_service_ = g_browser_process->safe_browsing_service();
+#endif
}
void AddRequestContextGetter(
@@ -49,7 +51,9 @@ class PurgeMemoryIOHelper
typedef scoped_refptr<net::URLRequestContextGetter> RequestContextGetter;
std::vector<RequestContextGetter> request_context_getters_;
+#if defined(ENABLE_SAFE_BROWSING)
scoped_refptr<SafeBrowsingService> safe_browsing_service_;
+#endif
DISALLOW_COPY_AND_ASSIGN(PurgeMemoryIOHelper);
};
@@ -67,7 +71,9 @@ void PurgeMemoryIOHelper::PurgeMemoryOnIOThread() {
PurgeMemory();
}
+#if defined(ENABLE_SAFE_BROWSING)
safe_browsing_service_->PurgeMemory();
+#endif
}
// -----------------------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698