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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 2341693002: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Change std::string() back to "" to fix compile 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
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_action/page_action_manifest_unittest.cc » ('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 eb4d107e69992982a04248824dae12a4387911cf..e94b79c5ec7e7ee14488c63b718c6a534c6f5361 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -720,9 +720,8 @@ bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() {
}
content::OriginTrialPolicy* ChromeContentClient::GetOriginTrialPolicy() {
- if (!origin_trial_policy_) {
- origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy());
- }
+ if (!origin_trial_policy_)
+ origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>();
return origin_trial_policy_.get();
}
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_action/page_action_manifest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698