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

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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use Polymer where relevant. Created 4 years, 11 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
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/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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 // static 741 // static
742 void UserImageManagerImpl::IgnoreProfileDataDownloadDelayForTesting() { 742 void UserImageManagerImpl::IgnoreProfileDataDownloadDelayForTesting() {
743 g_ignore_profile_data_download_delay_ = true; 743 g_ignore_profile_data_download_delay_ = true;
744 } 744 }
745 745
746 bool UserImageManagerImpl::NeedsProfilePicture() const { 746 bool UserImageManagerImpl::NeedsProfilePicture() const {
747 return downloading_profile_image_; 747 return downloading_profile_image_;
748 } 748 }
749 749
750 int UserImageManagerImpl::GetDesiredImageSideLength() const { 750 unsigned int UserImageManagerImpl::GetDesiredImageSideLength() const {
751 return GetCurrentUserImageSize(); 751 return GetCurrentUserImageSize();
752 } 752 }
753 753
754 Profile* UserImageManagerImpl::GetBrowserProfile() { 754 Profile* UserImageManagerImpl::GetBrowserProfile() {
755 return ProfileHelper::Get()->GetProfileByUserUnsafe(GetUser()); 755 return ProfileHelper::Get()->GetProfileByUserUnsafe(GetUser());
756 } 756 }
757 757
758 std::string UserImageManagerImpl::GetCachedPictureURL() const { 758 std::string UserImageManagerImpl::GetCachedPictureURL() const {
759 return profile_image_url_.spec(); 759 return profile_image_url_.spec();
760 } 760 }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 } 1026 }
1027 1027
1028 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const { 1028 bool UserImageManagerImpl::IsUserLoggedInAndHasGaiaAccount() const {
1029 const user_manager::User* user = GetUser(); 1029 const user_manager::User* user = GetUser();
1030 if (!user) 1030 if (!user)
1031 return false; 1031 return false;
1032 return user->is_logged_in() && user->HasGaiaAccount(); 1032 return user->is_logged_in() && user->HasGaiaAccount();
1033 } 1033 }
1034 1034
1035 } // namespace chromeos 1035 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698