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

Side by Side Diff: chrome/browser/chromeos/login/users/avatar/default_user_images.cc

Issue 400973002: Move default user profile images strings and resources out of src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split Created 6 years, 5 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 | Annotate | Revision Log
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 "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"
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/ui_chromeos_resources.h"
15 #include "grit/theme_resources.h" 15 #include "grit/ui_chromeos_strings.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/image/image_skia.h" 18 #include "ui/gfx/image/image_skia.h"
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 namespace { 22 namespace {
23 23
24 const char kDefaultPathPrefix[] = "default:"; 24 const char kDefaultPathPrefix[] = "default:";
25 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER_"; 25 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_LOGIN_DEFAULT_USER_";
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/webui/options/chromeos/user_image_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698