Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: components/enhanced_bookmarks/image_record.cc

Issue 1031293002: Fix crashes due to gfx::Image unsafe thread passing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary Pass() Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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_record.h"
6
7 namespace enhanced_bookmarks {
8
9 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image,
10 const GURL& url,
11 SkColor dominant_color)
12 : image(image.Pass()),
13 url(url),
14 dominant_color(dominant_color) {
15 }
16
17 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url)
18 : ImageRecord(image.Pass(), url, SK_ColorBLACK) {
19 }
20
21 ImageRecord::ImageRecord()
22 : ImageRecord(scoped_ptr<gfx::Image>(new gfx::Image()), GURL()) {
23 }
24
25 ImageRecord::~ImageRecord() {
26 }
27
28 } // namespace enhanced_bookmarks
OLDNEW
« no previous file with comments | « components/enhanced_bookmarks/image_record.h ('k') | components/enhanced_bookmarks/image_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698