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> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
12 #include "base/path_service.h" | 15 #include "base/path_service.h" |
13 #include "base/prefs/pref_registry_simple.h" | 16 #include "base/prefs/pref_registry_simple.h" |
14 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
15 #include "base/prefs/scoped_user_pref_update.h" | 18 #include "base/prefs/scoped_user_pref_update.h" |
16 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
17 #include "base/sequenced_task_runner.h" | 20 #include "base/sequenced_task_runner.h" |
18 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
19 #include "base/thread_task_runner_handle.h" | 22 #include "base/thread_task_runner_handle.h" |
20 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 } | 1027 } |
1025 | 1028 |
1026 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const { | 1029 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const { |
1027 const user_manager::User* user = GetUser(); | 1030 const user_manager::User* user = GetUser(); |
1028 if (!user) | 1031 if (!user) |
1029 return false; | 1032 return false; |
1030 return user->is_logged_in() && user->HasGaiaAccount(); | 1033 return user->is_logged_in() && user->HasGaiaAccount(); |
1031 } | 1034 } |
1032 | 1035 |
1033 } // namespace chromeos | 1036 } // namespace chromeos |
OLD | NEW |