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

Unified Diff: components/dom_distiller/core/fake_distiller_page.h

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
« no previous file with comments | « components/dom_distiller/core/fake_distiller.cc ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/fake_distiller_page.h
diff --git a/components/dom_distiller/core/fake_distiller_page.h b/components/dom_distiller/core/fake_distiller_page.h
index 0c672932e5d8d888dfbcd7663fbd67ab9034a450..82829eb92939e91831967353d8f706cea3903e21 100644
--- a/components/dom_distiller/core/fake_distiller_page.h
+++ b/components/dom_distiller/core/fake_distiller_page.h
@@ -16,13 +16,13 @@ class MockDistillerPageFactory : public DistillerPageFactory {
MockDistillerPageFactory();
~MockDistillerPageFactory() override;
MOCK_CONST_METHOD0(CreateDistillerPageImpl, DistillerPage*());
- scoped_ptr<DistillerPage> CreateDistillerPage(
+ std::unique_ptr<DistillerPage> CreateDistillerPage(
const gfx::Size& render_view_size) const override {
- return scoped_ptr<DistillerPage>(CreateDistillerPageImpl());
+ return std::unique_ptr<DistillerPage>(CreateDistillerPageImpl());
}
- scoped_ptr<DistillerPage> CreateDistillerPageWithHandle(
- scoped_ptr<SourcePageHandle> handle) const override {
- return scoped_ptr<DistillerPage>(CreateDistillerPageImpl());
+ std::unique_ptr<DistillerPage> CreateDistillerPageWithHandle(
+ std::unique_ptr<SourcePageHandle> handle) const override {
+ return std::unique_ptr<DistillerPage>(CreateDistillerPageImpl());
}
};
« no previous file with comments | « components/dom_distiller/core/fake_distiller.cc ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698