Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / ui / gfx / color_profile.cc
blob4fb4c9ff70eb1bbae3ab88ffb9ba9bf760408255
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) && !defined(OS_IOS))
10 void ReadColorProfile(std::vector<char>* profile);
11 #else
12 void ReadColorProfile(std::vector<char>* profile) { }
13 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
14 std::vector<char>* profile) {
15 // TODO(port): consider screen color profile support.
16 return false;
18 #endif
20 ColorProfile::ColorProfile() {
21 // TODO: support multiple monitors.
22 ReadColorProfile(&profile_);
25 ColorProfile::~ColorProfile() {
28 } // namespace gfx