Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index 92e128693818c64e5c4fefa1a5d13f17dc462ffd..54c32767bd0ae018b3ce3bc92bd43ecfa8b53023 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -35,6 +35,7 @@ |
#include "chrome/browser/history/shortcuts_backend.h" |
#include "chrome/browser/history/shortcuts_backend_factory.h" |
#include "chrome/browser/history/top_sites.h" |
+#include "chrome/browser/history/web_history_service_factory.h" |
#include "chrome/browser/net/proxy_service_factory.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/notifications/desktop_notification_service_factory.h" |
@@ -346,6 +347,8 @@ void TestingProfile::CreateHistoryService(bool delete_file, bool no_db) { |
no_db)) { |
HistoryServiceFactory::GetInstance()->SetTestingFactoryAndUse(this, NULL); |
} |
+ // Disable WebHistoryService by default, since it makes network requests. |
+ WebHistoryServiceFactory::GetInstance()->SetTestingFactory(this, NULL); |
} |
void TestingProfile::DestroyHistoryService() { |