#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_service.h"
-#include "chrome/common/favicon/favicon_types.h"
+#include "components/favicon_base/favicon_types.h"
#include "grit/generated_resources.h"
#include "grit/ui_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
}
load_state_ = LOADING;
favicon_service->GetFaviconImage(
- favicon_url, chrome::FAVICON, gfx::kFaviconSize,
- base::Bind(&ModelEntry::OnFaviconDataAvailable,
- base::Unretained(this)),
+ favicon_url,
+ favicon_base::FAVICON,
+ gfx::kFaviconSize,
+ base::Bind(&ModelEntry::OnFaviconDataAvailable, base::Unretained(this)),
&tracker_);
}
- void OnFaviconDataAvailable(const chrome::FaviconImageResult& image_result) {
+ void OnFaviconDataAvailable(
+ const favicon_base::FaviconImageResult& image_result) {
load_state_ = LOADED;
if (!image_result.image.IsEmpty()) {
favicon_ = image_result.image.AsImageSkia();
return -1;
template_url_service_->RemoveObserver(this);
- template_url_service_->SetDefaultSearchProvider(keyword);
+ template_url_service_->SetUserSelectedDefaultSearchProvider(keyword);
template_url_service_->AddObserver(this);
// The formatting of the default engine is different; notify the table that