| 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)
|
|
|