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 ad355f9cd18cb87eb9ae69dcf77277295a459681..f221ad30dd737f51dbb087bedee05f8a0b32418d 100644 |
--- a/components/dom_distiller/ios/distiller_page_factory_ios.mm |
+++ b/components/dom_distiller/ios/distiller_page_factory_ios.mm |
@@ -5,25 +5,28 @@ |
#include "components/dom_distiller/ios/distiller_page_factory_ios.h" |
#include "base/memory/ptr_util.h" |
+#include "components/dom_distiller/ios/distiller_favicon_ios.h" |
#include "components/dom_distiller/ios/distiller_page_ios.h" |
#include "ios/web/public/browser_state.h" |
namespace dom_distiller { |
DistillerPageFactoryIOS::DistillerPageFactoryIOS( |
- web::BrowserState* browser_state) |
- : browser_state_(browser_state) { |
-} |
+ web::BrowserState* browser_state, |
+ DistillerFaviconIOS* distiller_favicon) |
+ : browser_state_(browser_state), distiller_favicon_(distiller_favicon) {} |
std::unique_ptr<DistillerPage> DistillerPageFactoryIOS::CreateDistillerPage( |
const gfx::Size& view_size) const { |
- return base::WrapUnique<DistillerPage>(new DistillerPageIOS(browser_state_)); |
+ return base::WrapUnique<DistillerPage>( |
+ new DistillerPageIOS(browser_state_, distiller_favicon_)); |
} |
std::unique_ptr<DistillerPage> |
DistillerPageFactoryIOS::CreateDistillerPageWithHandle( |
std::unique_ptr<SourcePageHandle> handle) const { |
- return base::WrapUnique<DistillerPage>(new DistillerPageIOS(browser_state_)); |
+ return base::WrapUnique<DistillerPage>( |
+ new DistillerPageIOS(browser_state_, distiller_favicon_)); |
} |
} // namespace dom_distiller |