Index: chrome/browser/browsing_data_remover.cc |
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc |
index 70622cfc5036f608daa7d36de3bb161b8d5dd38d..b9e4e9a0682f74f1b50b937003cc098f03523620 100644 |
--- a/chrome/browser/browsing_data_remover.cc |
+++ b/chrome/browser/browsing_data_remover.cc |
@@ -240,11 +240,13 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask, |
tab_service->DeleteLastSession(); |
} |
+#if defined(ENABLE_SESSION_SERVICE) |
// We also delete the last session when we delete the history. |
SessionService* session_service = |
SessionServiceFactory::GetForProfile(profile_); |
if (session_service) |
session_service->DeleteLastSession(); |
+#endif |
} |
} |