Don't crash when SimpleCache index is corrupt.
[chromium-blink-merge.git] / ui / gfx / color_profile.cc
blobfcd9a52ea0cd3eebc3b3c2cb80eb329f9f01330e
1 // Copyright (c) 2012 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 "ui/gfx/color_profile.h"
7 namespace gfx {
9 #if defined(OS_WIN) || defined(OS_MACOSX)
10 void ReadColorProfile(std::vector<char>* profile);
11 #else
12 void ReadColorProfile(std::vector<char>* profile) { }
13 #endif
15 ColorProfile::ColorProfile() {
16 // TODO: support multiple monitors.
17 ReadColorProfile(&profile_);
20 ColorProfile::~ColorProfile() {
23 } // namespace gfx