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/chromeos/login/default_user_images.h" | 5 #include "chrome/browser/chromeos/login/users/avatar/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/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 int GetDefaultImageHistogramValue(int index) { | 277 int GetDefaultImageHistogramValue(int index) { |
278 DCHECK(index >= 0 && index < kDefaultImagesCount); | 278 DCHECK(index >= 0 && index < kDefaultImagesCount); |
279 // Create a gap in histogram values for | 279 // Create a gap in histogram values for |
280 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. | 280 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. |
281 if (index < kHistogramImageFromCamera) | 281 if (index < kHistogramImageFromCamera) |
282 return index; | 282 return index; |
283 return index + 6; | 283 return index + 6; |
284 } | 284 } |
285 | 285 |
286 } // namespace chromeos | 286 } // namespace chromeos |
OLD | NEW |