OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source.h" |
6 | 6 |
7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
10 #include "chrome/browser/chromeos/login/user_manager.h" | 10 #include "chrome/browser/chromeos/login/user_manager.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "googleurl/src/url_parse.h" | 12 #include "googleurl/src/url_parse.h" |
13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/gfx/codec/png_codec.h" | 15 #include "ui/gfx/codec/png_codec.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (is_image_animated) { | 106 if (is_image_animated) { |
107 const chromeos::User* user = chromeos::UserManager::Get()->FindUser(email); | 107 const chromeos::User* user = chromeos::UserManager::Get()->FindUser(email); |
108 if (user && user->has_animated_image()) | 108 if (user && user->has_animated_image()) |
109 return "image/gif"; | 109 return "image/gif"; |
110 } | 110 } |
111 return "image/png"; | 111 return "image/png"; |
112 } | 112 } |
113 | 113 |
114 } // namespace options2 | 114 } // namespace options2 |
115 } // namespace chromeos | 115 } // namespace chromeos |
OLD | NEW |