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

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

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index d5cdd1db9670ae0bef572b153cf9ec621c9c754a..69ebb0af2b51265a875e084334f280860e62e47c 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -246,8 +246,8 @@ base::FilePath OffTheRecordProfileImpl::GetPath() const {
std::unique_ptr<content::ZoomLevelDelegate>
OffTheRecordProfileImpl::CreateZoomLevelDelegate(
const base::FilePath& partition_path) {
- return base::WrapUnique(new ChromeZoomLevelOTRDelegate(
- zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr()));
+ return base::MakeUnique<ChromeZoomLevelOTRDelegate>(
+ zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr());
}
scoped_refptr<base::SequencedTaskRunner>
« no previous file with comments | « chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698