Index: ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.mm |
diff --git a/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.mm b/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..62ae8902004e312b7c0c83d50fac58c8b556535e |
--- /dev/null |
+++ b/ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.mm |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.h" |
+ |
+#include "components/favicon/ios/web_favicon_driver.h" |
+#include "components/keyed_service/core/service_access_type.h" |
+#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" |
+#include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
+#include "ios/chrome/browser/favicon/favicon_service_factory.h" |
+#include "ios/chrome/browser/history/history_service_factory.h" |
+#include "ios/web/public/web_state/web_state.h" |
Eugene But (OOO till 7-30)
2016/12/08 15:34:53
s/include/import
gambard
2016/12/12 15:04:26
Done.
|
+ |
+namespace dom_distiller { |
+ |
+void FaviconObserverFactoryImpl::AddFaviconObserver( |
+ web::WebState* web_state, |
+ web::BrowserState* browser_state) { |
+ ios::ChromeBrowserState* original_browser_state = |
+ ios::ChromeBrowserState::FromBrowserState(browser_state); |
+ |
+ favicon::WebFaviconDriver::CreateForWebState( |
+ web_state, |
+ ios::FaviconServiceFactory::GetForBrowserState( |
+ original_browser_state, ServiceAccessType::EXPLICIT_ACCESS), |
+ ios::HistoryServiceFactory::GetForBrowserState( |
+ original_browser_state, ServiceAccessType::EXPLICIT_ACCESS), |
+ ios::BookmarkModelFactory::GetForBrowserState(original_browser_state)); |
+} |
+} |
Eugene But (OOO till 7-30)
2016/12/08 15:34:53
// namespace dom_distiller
gambard
2016/12/12 15:04:26
Done.
|