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

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

Issue 2604773002: Create distiller files for Reading List. (Closed)
Patch Set: feedback Created 3 years, 12 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 1e3f7f45238f3f4dc59f6d60c17dec3d26e058fc..6aef14f56d89d137ca1eb7d04f193acd3eaaef7f 100644
--- a/components/dom_distiller/ios/distiller_page_factory_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_factory_ios.mm
@@ -6,26 +6,25 @@
#include "base/memory/ptr_util.h"
#include "components/dom_distiller/ios/distiller_page_ios.h"
-#include "components/dom_distiller/ios/favicon_web_state_dispatcher.h"
#include "ios/web/public/browser_state.h"
namespace dom_distiller {
DistillerPageFactoryIOS::DistillerPageFactoryIOS(
- std::unique_ptr<FaviconWebStateDispatcher> web_state_dispatcher)
- : web_state_dispatcher_(std::move(web_state_dispatcher)) {}
+ web::BrowserState* browser_state)
+ : browser_state_(browser_state) {}
DistillerPageFactoryIOS::~DistillerPageFactoryIOS() {}
std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage(
const gfx::Size& view_size) const {
- return base::MakeUnique<DistillerPageIOS>(web_state_dispatcher_.get());
+ return base::MakeUnique<DistillerPageIOS>(browser_state_);
}
std::unique_ptr<DistillerPage>
DistillerPageFactoryIOS::CreateDistillerPageWithHandle(
std::unique_ptr<SourcePageHandle> handle) const {
- return base::MakeUnique<DistillerPageIOS>(web_state_dispatcher_.get());
+ return base::MakeUnique<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