OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "components/user_manager/user_image/default_user_images.h" | 5 #include "components/user_manager/user_image/default_user_images.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "grit/ui_chromeos_resources.h" | |
15 #include "grit/ui_chromeos_strings.h" | |
16 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/chromeos/resources/grit/ui_chromeos_resources.h" |
| 17 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h" |
18 #include "ui/gfx/image/image_skia.h" | 18 #include "ui/gfx/image/image_skia.h" |
19 | 19 |
20 namespace user_manager { | 20 namespace user_manager { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER_"; | 24 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER_"; |
25 const char kZeroDefaultUrl[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER"; | 25 const char kZeroDefaultUrl[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER"; |
26 | 26 |
27 // IDs of default user image descriptions. | 27 // IDs of default user image descriptions. |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 int GetDefaultImageHistogramValue(int index) { | 249 int GetDefaultImageHistogramValue(int index) { |
250 DCHECK(index >= 0 && index < kDefaultImagesCount); | 250 DCHECK(index >= 0 && index < kDefaultImagesCount); |
251 // Create a gap in histogram values for | 251 // Create a gap in histogram values for |
252 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. | 252 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. |
253 if (index < kHistogramImageFromCamera) | 253 if (index < kHistogramImageFromCamera) |
254 return index; | 254 return index; |
255 return index + 6; | 255 return index + 6; |
256 } | 256 } |
257 | 257 |
258 } // namespace user_manager | 258 } // namespace user_manager |
OLD | NEW |