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

Unified Diff: components/dom_distiller/ios/distiller_page_factory_ios.mm

Issue 1879613003: Convert //components/dom_distiller from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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: components/dom_distiller/ios/distiller_page_factory_ios.mm
diff --git a/components/dom_distiller/ios/distiller_page_factory_ios.mm b/components/dom_distiller/ios/distiller_page_factory_ios.mm
index 20e9af90d23d7219338e5be477d1a1953ce3c612..ad355f9cd18cb87eb9ae69dcf77277295a459681 100644
--- a/components/dom_distiller/ios/distiller_page_factory_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_factory_ios.mm
@@ -4,6 +4,7 @@
#include "components/dom_distiller/ios/distiller_page_factory_ios.h"
+#include "base/memory/ptr_util.h"
#include "components/dom_distiller/ios/distiller_page_ios.h"
#include "ios/web/public/browser_state.h"
@@ -14,15 +15,15 @@ DistillerPageFactoryIOS::DistillerPageFactoryIOS(
: browser_state_(browser_state) {
}
-scoped_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage(
+std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage(
const gfx::Size& view_size) const {
- return make_scoped_ptr<DistillerPage>(new DistillerPageIOS(browser_state_));
+ return base::WrapUnique<DistillerPage>(new DistillerPageIOS(browser_state_));
}
-scoped_ptr<DistillerPage>
+std::unique_ptr<DistillerPage>
DistillerPageFactoryIOS::CreateDistillerPageWithHandle(
- scoped_ptr<SourcePageHandle> handle) const {
- return make_scoped_ptr<DistillerPage>(new DistillerPageIOS(browser_state_));
+ std::unique_ptr<SourcePageHandle> handle) const {
+ return base::WrapUnique<DistillerPage>(new DistillerPageIOS(browser_state_));
}
} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/ios/distiller_page_factory_ios.h ('k') | components/dom_distiller/ios/distiller_page_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698