OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/favicon/core/favicon_driver_impl.h" | 5 #include "components/favicon/core/favicon_driver_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "build/build_config.h" |
11 #include "components/bookmarks/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
12 #include "components/favicon/core/favicon_driver_observer.h" | 13 #include "components/favicon/core/favicon_driver_observer.h" |
13 #include "components/favicon/core/favicon_handler.h" | 14 #include "components/favicon/core/favicon_handler.h" |
14 #include "components/favicon/core/favicon_service.h" | 15 #include "components/favicon/core/favicon_service.h" |
15 #include "components/history/core/browser/history_service.h" | 16 #include "components/history/core/browser/history_service.h" |
16 #include "ui/base/ui_base_switches.h" | 17 #include "ui/base/ui_base_switches.h" |
17 | 18 |
18 namespace favicon { | 19 namespace favicon { |
19 namespace { | 20 namespace { |
20 | 21 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void FaviconDriverImpl::OnUpdateFaviconURL( | 115 void FaviconDriverImpl::OnUpdateFaviconURL( |
115 const GURL& page_url, | 116 const GURL& page_url, |
116 const std::vector<FaviconURL>& candidates) { | 117 const std::vector<FaviconURL>& candidates) { |
117 DCHECK(!candidates.empty()); | 118 DCHECK(!candidates.empty()); |
118 favicon_handler_->OnUpdateFaviconURL(page_url, candidates); | 119 favicon_handler_->OnUpdateFaviconURL(page_url, candidates); |
119 if (touch_icon_handler_.get()) | 120 if (touch_icon_handler_.get()) |
120 touch_icon_handler_->OnUpdateFaviconURL(page_url, candidates); | 121 touch_icon_handler_->OnUpdateFaviconURL(page_url, candidates); |
121 } | 122 } |
122 | 123 |
123 } // namespace favicon | 124 } // namespace favicon |
OLD | NEW |