1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "components/enhanced_bookmarks/image_store.h"
6
7#include "url/gurl.h"
8
9ImageStore::ImageStore() {
10}
11
12ImageStore::~ImageStore() {
13}
14
15void ImageStore::ChangeImageURL(const GURL& from, const GURL& to) {
16  DCHECK(sequence_checker_.CalledOnValidSequencedThread());
17
18  if (!HasKey(from))
19    return;
20
21  std::pair<gfx::Image, GURL> image_info = Get(from);
22  Erase(from);
23  Insert(to, image_info.second, image_info.first);
24}
25