| 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 "chrome/browser/chromeos/login/users/avatar/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" |
| (...skipping 266 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 |