Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: components/user_manager/user_image/default_user_images.cc

Issue 644613002: Groom user manager's code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/user_manager/DEPS ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/user_manager/DEPS ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698