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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 2049783002: Refactor OriginTrialPolicy to be an abstract interface in content/public/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-add-revoked-feature-list
Patch Set: Switch to lazy initialization in ChromeContentClient Created 4 years, 6 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
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/origin_trials/chrome_origin_trial_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index f4414936e8e0e89a3495aec4073693e75ea35484..17698278d7b8b996070bab5592b0ce3a43708fb6 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -430,6 +430,12 @@ std::string GetUserAgent() {
return content::BuildUserAgentFromProduct(product);
}
+ChromeContentClient::ChromeContentClient() {
+}
+
+ChromeContentClient::~ChromeContentClient() {
+}
+
#if !defined(DISABLE_NACL)
void ChromeContentClient::SetNaClEntryFunctions(
content::PepperPluginInfo::GetInterfaceFunc get_interface,
@@ -700,8 +706,11 @@ bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() {
#endif
}
-base::StringPiece ChromeContentClient::GetOriginTrialPublicKey() {
- return origin_trial_key_manager_.GetPublicKey();
+content::OriginTrialPolicy* ChromeContentClient::GetOriginTrialPolicy() {
+ if (!origin_trial_policy_) {
+ origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy());
+ }
+ return origin_trial_policy_.get();
}
#if defined(OS_ANDROID)
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/origin_trials/chrome_origin_trial_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698