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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2300213002: Adding an IO Data and keyed service to previews/ (Closed)
Patch Set: thestig comments Created 4 years, 3 months 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
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index ad1e21a7da4b57efc0ce88fdfbc1cc9215ed722e..def55b643eb12d948b1550a6c60667cff0cb4bd5 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -67,20 +67,21 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_service.h"
#include "components/net_log/chrome_net_log.h"
#include "components/policy/core/browser/url_blacklist_manager.h"
#include "components/policy/core/common/cloud/policy_header_io_helper.h"
#include "components/policy/core/common/cloud/policy_header_service.h"
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#include "components/prefs/pref_service.h"
+#include "components/previews/previews_io_data.h"
#include "components/signin/core/common/signin_pref_names.h"
#include "components/sync/driver/pref_names.h"
#include "components/url_formatter/url_fixer.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/resource_context.h"
#include "content/public/common/content_switches.h"
#include "net/base/keygen_handler.h"
#include "net/cert/cert_verifier.h"
@@ -950,20 +951,25 @@ std::unique_ptr<net::ClientCertStore> ProfileIOData::CreateClientCertStore() {
#error Unknown platform.
#endif
}
void ProfileIOData::set_data_reduction_proxy_io_data(
std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData>
data_reduction_proxy_io_data) const {
data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data);
}
+void ProfileIOData::set_previews_io_data(
+ std::unique_ptr<previews::PreviewsIOData> previews_io_data) const {
+ previews_io_data_ = std::move(previews_io_data);
+}
+
net::HttpServerProperties* ProfileIOData::http_server_properties() const {
return http_server_properties_.get();
}
void ProfileIOData::set_http_server_properties(
std::unique_ptr<net::HttpServerProperties> http_server_properties) const {
http_server_properties_ = std::move(http_server_properties);
}
ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data)

Powered by Google App Engine
This is Rietveld 408576698