diff --git a/ui/gfx/image/image_skia.cc b/ui/gfx/image/image_skia.cc index 6d2748d67..31dfdf5d2 100644 --- a/ui/gfx/image/image_skia.cc +++ b/ui/gfx/image/image_skia.cc @@ -125,7 +125,7 @@ class ImageSkiaStorage : public base::RefCountedThreadSafe { // one and rescale the image. // Right now only Windows uses 2 and other platforms use 1 by default. // TODO(mukai, oshima): abandon 1 code path and use 2 for every platforms. - std::vector::iterator FindRepresentation( + std::vector::const_iterator FindRepresentation( float scale, bool fetch_new_image) const; @@ -211,7 +211,7 @@ bool ImageSkiaStorage::HasRepresentationAtAllScales() const { return source_ && source_->HasRepresentationAtAllScales(); } -std::vector::iterator ImageSkiaStorage::FindRepresentation( +std::vector::const_iterator ImageSkiaStorage::FindRepresentation( float scale, bool fetch_new_image) const { auto closest_iter = image_reps_.end();