From: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Mon, 12 Feb 2018 21:29:30 +0100
Subject: ungoogled-chromium: Disable profile avatar

Added some Bromite-specific further improvements

License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
 chrome/browser/BUILD.gn                             | 2 --
 chrome/browser/profiles/profile_attributes_entry.cc | 6 ------
 2 files changed, 8 deletions(-)

diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1448,8 +1448,6 @@ static_library("browser") {
     "profiles/profile_attributes_storage.cc",
     "profiles/profile_attributes_storage.h",
     "profiles/profile_attributes_storage_observer.h",
-    "profiles/profile_avatar_downloader.cc",
-    "profiles/profile_avatar_downloader.h",
     "profiles/profile_avatar_icon_util.cc",
     "profiles/profile_avatar_icon_util.h",
     "profiles/profile_destroyer.cc",
diff --git a/chrome/browser/profiles/profile_attributes_entry.cc b/chrome/browser/profiles/profile_attributes_entry.cc
--- a/chrome/browser/profiles/profile_attributes_entry.cc
+++ b/chrome/browser/profiles/profile_attributes_entry.cc
@@ -336,12 +336,6 @@ std::u16string ProfileAttributesEntry::GetUserName() const {
 gfx::Image ProfileAttributesEntry::GetAvatarIcon(
     int size_for_placeholder_avatar,
     bool use_high_res_file) const {
-  if (IsUsingGAIAPicture()) {
-    const gfx::Image* image = GetGAIAPicture();
-    if (image)
-      return *image;
-  }
-
 #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
   // TODO(crbug.com/1100835): After launch, remove the treatment of placeholder
   // avatars from GetHighResAvatar() and from any other places.
--
2.25.1
