| 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/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/string_util.h" | |
| 10 #include "base/stringprintf.h" | |
| 11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" |
| 13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 int GetDefaultImageHistogramValue(int index) { | 276 int GetDefaultImageHistogramValue(int index) { |
| 277 DCHECK(index >= 0 && index < kDefaultImagesCount); | 277 DCHECK(index >= 0 && index < kDefaultImagesCount); |
| 278 // Create a gap in histogram values for | 278 // Create a gap in histogram values for |
| 279 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. | 279 // [kHistogramImageFromCamera..kHistogramImageFromProfile] block to fit. |
| 280 if (index < kHistogramImageFromCamera) | 280 if (index < kHistogramImageFromCamera) |
| 281 return index; | 281 return index; |
| 282 return index + 6; | 282 return index + 6; |
| 283 } | 283 } |
| 284 | 284 |
| 285 } // namespace chromeos | 285 } // namespace chromeos |
| OLD | NEW |