cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / enhanced_bookmarks / image_store.cc
blobc0759c13cc5d13e646df4408c6b7876c54e31bca
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.
5 #include "components/enhanced_bookmarks/image_store.h"
7 #include "url/gurl.h"
9 ImageStore::ImageStore() {
12 ImageStore::~ImageStore() {
15 void ImageStore::ChangeImageURL(const GURL& from, const GURL& to) {
16 DCHECK(sequence_checker_.CalledOnValidSequencedThread());
18 if (!HasKey(from))
19 return;
21 scoped_refptr<enhanced_bookmarks::ImageRecord> record = Get(from);
22 Erase(from);
23 Insert(to, record);