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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 713
714 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() { 714 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() {
715 #if defined(ENABLE_EXTENSIONS) 715 #if defined(ENABLE_EXTENSIONS)
716 return extensions::IsIsolateExtensionsEnabled(); 716 return extensions::IsIsolateExtensionsEnabled();
717 #else 717 #else
718 return false; 718 return false;
719 #endif 719 #endif
720 } 720 }
721 721
722 content::OriginTrialPolicy* ChromeContentClient::GetOriginTrialPolicy() { 722 content::OriginTrialPolicy* ChromeContentClient::GetOriginTrialPolicy() {
723 if (!origin_trial_policy_) { 723 if (!origin_trial_policy_)
724 origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy()); 724 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>();
725 }
726 return origin_trial_policy_.get(); 725 return origin_trial_policy_.get();
727 } 726 }
728 727
729 #if defined(OS_ANDROID) 728 #if defined(OS_ANDROID)
730 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { 729 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() {
731 return new ChromeMediaClientAndroid(); 730 return new ChromeMediaClientAndroid();
732 } 731 }
733 #endif // OS_ANDROID 732 #endif // OS_ANDROID
OLDNEW
« 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