OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/user_image_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/user_image_manager_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/prefs/pref_registry_simple.h" | 14 #include "base/prefs/pref_registry_simple.h" |
15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
17 #include "base/threading/worker_pool.h" | 17 #include "base/threading/worker_pool.h" |
18 #include "base/time.h" | 18 #include "base/time/time.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chromeos/login/default_user_images.h" | 21 #include "chrome/browser/chromeos/login/default_user_images.h" |
22 #include "chrome/browser/chromeos/login/helper.h" | 22 #include "chrome/browser/chromeos/login/helper.h" |
23 #include "chrome/browser/chromeos/login/user_image.h" | 23 #include "chrome/browser/chromeos/login/user_image.h" |
24 #include "chrome/browser/chromeos/login/user_manager.h" | 24 #include "chrome/browser/chromeos/login/user_manager.h" |
25 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 25 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
26 #include "chrome/browser/profiles/profile_downloader.h" | 26 #include "chrome/browser/profiles/profile_downloader.h" |
27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" |
28 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 if (prefs_images_update->GetDictionaryWithoutPathExpansion( | 774 if (prefs_images_update->GetDictionaryWithoutPathExpansion( |
775 username, &image_properties)) { | 775 username, &image_properties)) { |
776 std::string image_path; | 776 std::string image_path; |
777 image_properties->GetString(kImagePathNodeName, &image_path); | 777 image_properties->GetString(kImagePathNodeName, &image_path); |
778 prefs_images_update->RemoveWithoutPathExpansion(username, NULL); | 778 prefs_images_update->RemoveWithoutPathExpansion(username, NULL); |
779 DeleteImageFile(image_path); | 779 DeleteImageFile(image_path); |
780 } | 780 } |
781 } | 781 } |
782 | 782 |
783 } // namespace chromeos | 783 } // namespace chromeos |
OLD | NEW |