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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_tab_observer.cc

Issue 8909017: Fix compile on linux_redux bots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo Created 9 years 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 | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc b/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
index 4d8755bbbcd1842b9d767d92ba67e25bea225041..2e2e79dcef8f2dc0fa213399078153f69ab7abde 100644
--- a/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_tab_observer.cc
@@ -7,7 +7,6 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/safe_browsing/client_side_detection_host.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
@@ -17,8 +16,19 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#if defined(ENABLE_SAFE_BROWSING)
+#include "chrome/browser/safe_browsing/client_side_detection_host.h"
+#endif
+
namespace safe_browsing {
+#if !defined(ENABLE_SAFE_BROWSING)
+// Provide a dummy implementation so that scoped_ptr<ClientSideDetectionHost>
+// has a concrete destructor to call. This is necessary because it is used
+// as a member of SafeBrowsingTabObserver, even if it only ever contains NULL.
+class ClientSideDetectionHost { };
+#endif
+
SafeBrowsingTabObserver::SafeBrowsingTabObserver(
TabContentsWrapper* wrapper) : wrapper_(wrapper) {
#if defined(ENABLE_SAFE_BROWSING)
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698