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

Unified Diff: chrome/browser/precache/precache_manager_factory.cc

Issue 2544613003: Disable precache if data_reduction_proxy enabled. (Closed)
Patch Set: Rebase. Created 4 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 | components/precache/content/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/precache/precache_manager_factory.cc
diff --git a/chrome/browser/precache/precache_manager_factory.cc b/chrome/browser/precache/precache_manager_factory.cc
index dbe8e404ecdde54952c8346ce6556d2b834a247f..9d8552e8603d964686e98afa251fe5ce1eed5a7f 100644
--- a/chrome/browser/precache/precache_manager_factory.cc
+++ b/chrome/browser/precache/precache_manager_factory.cc
@@ -5,9 +5,12 @@
#include "chrome/browser/precache/precache_manager_factory.h"
#include <memory>
+#include <utility>
#include "base/files/file_path.h"
#include "chrome/browser/history/history_service_factory.h"
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -52,6 +55,8 @@ KeyedService* PrecacheManagerFactory::BuildServiceInstanceFor(
HistoryServiceFactory::GetForProfile(
Profile::FromBrowserContext(browser_context),
ServiceAccessType::IMPLICIT_ACCESS),
+ DataReductionProxyChromeSettingsFactory::GetForBrowserContext(
+ browser_context),
db_path, std::move(precache_database));
}
« no previous file with comments | « no previous file | components/precache/content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698