| Index: chrome/browser/favicon/favicon_util.cc
|
| diff --git a/chrome/browser/favicon/favicon_util.cc b/chrome/browser/favicon/favicon_util.cc
|
| index 4d7dff2414a967026b4d1aed19c95608f30f228d..8f245d4c54f3768e127489a5322bd39e4309eb93 100644
|
| --- a/chrome/browser/favicon/favicon_util.cc
|
| +++ b/chrome/browser/favicon/favicon_util.cc
|
| @@ -42,8 +42,7 @@ std::vector<gfx::ImagePNGRep> SelectFaviconFramesFromPNGsWithoutResizing(
|
| best_candidate = png_data[i].bitmap_data;
|
| }
|
| }
|
| - png_reps.push_back(gfx::ImagePNGRep(best_candidate,
|
| - ui::SCALE_FACTOR_100P));
|
| + png_reps.push_back(gfx::ImagePNGRep(best_candidate, 1.0f));
|
| return png_reps;
|
| }
|
|
|
| @@ -70,7 +69,9 @@ std::vector<gfx::ImagePNGRep> SelectFaviconFramesFromPNGsWithoutResizing(
|
| if (it == desired_pixel_sizes.end())
|
| continue;
|
|
|
| - png_reps.push_back(gfx::ImagePNGRep(png_data[i].bitmap_data, it->second));
|
| + png_reps.push_back(
|
| + gfx::ImagePNGRep(png_data[i].bitmap_data,
|
| + ui::GetScaleFactorScale(it->second)));
|
| }
|
|
|
| return png_reps;
|
| @@ -144,7 +145,7 @@ gfx::Image FaviconUtil::SelectFaviconFramesFromPNGs(
|
| std::vector<ui::ScaleFactor>::iterator it = std::find(
|
| scale_factors_to_generate.begin(),
|
| scale_factors_to_generate.end(),
|
| - png_reps[i].scale_factor);
|
| + ui::GetScaleFactorFromScale(png_reps[i].scale));
|
| CHECK(it != scale_factors_to_generate.end());
|
| scale_factors_to_generate.erase(it);
|
| }
|
| @@ -181,7 +182,7 @@ gfx::Image FaviconUtil::SelectFaviconFramesFromPNGs(
|
| if (gfx::PNGCodec::EncodeBGRASkBitmap(
|
| resized_image_skia_reps[i].sk_bitmap(), false, &png_bytes->data())) {
|
| png_reps.push_back(gfx::ImagePNGRep(png_bytes,
|
| - resized_image_skia_reps[i].scale_factor()));
|
| + resized_image_skia_reps[i].scale()));
|
| }
|
| }
|
|
|
|
|