| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/possible_url_model.h" | 5 #include "chrome/browser/possible_url_model.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | |
| 8 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 9 #include "app/table_model_observer.h" | 8 #include "app/table_model_observer.h" |
| 10 #include "base/callback.h" | 9 #include "base/callback.h" |
| 11 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/cancelable_request.h" | 12 #include "chrome/browser/cancelable_request.h" |
| 14 #include "chrome/browser/favicon_service.h" | 13 #include "chrome/browser/favicon_service.h" |
| 15 #include "chrome/browser/pref_service.h" | 14 #include "chrome/browser/pref_service.h" |
| 16 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // The decoder will leave our bitmap empty on error. | 177 // The decoder will leave our bitmap empty on error. |
| 179 gfx::PNGCodec::Decode(data->front(), data->size(), | 178 gfx::PNGCodec::Decode(data->front(), data->size(), |
| 180 &(fav_icon_map_[index])); | 179 &(fav_icon_map_[index])); |
| 181 | 180 |
| 182 // Notify the observer. | 181 // Notify the observer. |
| 183 if (!fav_icon_map_[index].isNull() && observer_) | 182 if (!fav_icon_map_[index].isNull() && observer_) |
| 184 observer_->OnItemsChanged(static_cast<int>(index), 1); | 183 observer_->OnItemsChanged(static_cast<int>(index), 1); |
| 185 } | 184 } |
| 186 } | 185 } |
| 187 } | 186 } |
| OLD | NEW |