| 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/user_image_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
| 20 #include "base/sequenced_task_runner.h" | 20 #include "base/sequenced_task_runner.h" |
| 21 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
| 22 #include "base/thread_task_runner_handle.h" | |
| 23 #include "base/thread_task_runner_handle.h" | |
| 24 #include "base/threading/sequenced_worker_pool.h" | 22 #include "base/threading/sequenced_worker_pool.h" |
| 23 #include "base/threading/thread_task_runner_handle.h" |
| 25 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 26 #include "base/trace_event/trace_event.h" | 25 #include "base/trace_event/trace_event.h" |
| 27 #include "base/values.h" | 26 #include "base/values.h" |
| 28 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 29 #include "chrome/browser/chrome_notification_types.h" | 28 #include "chrome/browser/chrome_notification_types.h" |
| 30 #include "chrome/browser/chromeos/login/helper.h" | 29 #include "chrome/browser/chromeos/login/helper.h" |
| 31 #include "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" | 30 #include "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" |
| 32 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" | 31 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" |
| 33 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im
ages.h" | 32 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im
ages.h" |
| 34 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 33 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 } | 963 } |
| 965 | 964 |
| 966 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const { | 965 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const { |
| 967 const user_manager::User* user = GetUser(); | 966 const user_manager::User* user = GetUser(); |
| 968 if (!user) | 967 if (!user) |
| 969 return false; | 968 return false; |
| 970 return user->is_logged_in() && user->HasGaiaAccount(); | 969 return user->is_logged_in() && user->HasGaiaAccount(); |
| 971 } | 970 } |
| 972 | 971 |
| 973 } // namespace chromeos | 972 } // namespace chromeos |
| OLD | NEW |