| Index: android_webview/browser/icon_helper.cc
|
| diff --git a/android_webview/browser/icon_helper.cc b/android_webview/browser/icon_helper.cc
|
| index 80233fca2359f0c38207b9eceed15fe7c7572b82..e227532626ee1ecb3fbf9f69ce35ebff3a3fb898 100644
|
| --- a/android_webview/browser/icon_helper.cc
|
| +++ b/android_webview/browser/icon_helper.cc
|
| @@ -60,9 +60,7 @@ void IconHelper::DidUpdateFaviconURL(int32 page_id,
|
|
|
| switch(i->icon_type) {
|
| case content::FaviconURL::FAVICON:
|
| - // TODO(acleung): only fetch the URL if favicon downloading is enabled.
|
| - // (currently that is, the app has called WebIconDatabase.open()
|
| - // but we should decouple that setting via a boolean setting)
|
| + if (listener_ && !listener_->ShouldDownloadFavicon(i->icon_url)) break;
|
| web_contents()->DownloadImage(i->icon_url,
|
| true, // Is a favicon
|
| 0, // No maximum size
|
|
|