Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ios/chrome/browser/dom_distiller/favicon_observer_factory_impl.h" | |
| 6 | |
| 7 #include "components/favicon/ios/web_favicon_driver.h" | |
| 8 #include "components/keyed_service/core/service_access_type.h" | |
| 9 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" | |
| 10 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | |
| 11 #include "ios/chrome/browser/favicon/favicon_service_factory.h" | |
| 12 #include "ios/chrome/browser/history/history_service_factory.h" | |
| 13 #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.
| |
| 14 | |
| 15 namespace dom_distiller { | |
| 16 | |
| 17 void FaviconObserverFactoryImpl::AddFaviconObserver( | |
| 18 web::WebState* web_state, | |
| 19 web::BrowserState* browser_state) { | |
| 20 ios::ChromeBrowserState* original_browser_state = | |
| 21 ios::ChromeBrowserState::FromBrowserState(browser_state); | |
| 22 | |
| 23 favicon::WebFaviconDriver::CreateForWebState( | |
| 24 web_state, | |
| 25 ios::FaviconServiceFactory::GetForBrowserState( | |
| 26 original_browser_state, ServiceAccessType::EXPLICIT_ACCESS), | |
| 27 ios::HistoryServiceFactory::GetForBrowserState( | |
| 28 original_browser_state, ServiceAccessType::EXPLICIT_ACCESS), | |
| 29 ios::BookmarkModelFactory::GetForBrowserState(original_browser_state)); | |
| 30 } | |
| 31 } | |
|
Eugene But (OOO till 7-30)
2016/12/08 15:34:53
// namespace dom_distiller
gambard
2016/12/12 15:04:26
Done.
| |
| OLD | NEW |