Skip to content

hparadiz/chromium-disable-profile-button-patch

Repository files navigation

Patch to disable user profile avatar button in open source Chromium builds

About

In Chrome 38 google introduced profile switching directly from the Title bar. Many users found it annoying and it was easy to disable through chrome://flags. In Chrome 44 you now had to use a command line switch to remove it. As of Chrome 47 it became default with no way to remove this eye sore. Those of us who only have one user profile found this quite bothersome. It bothered me so much I decided to write a patch and build my own version of Chromium.

The issue is well documented:

The issue was marked as WillNotFix by the Chrome team I decided to take matters into my own hands.

How

The method bool BrowserView::ShouldShowAvatar() presented an easy opportunity to supress the button. The method is used to tell the UI when it should not draw the button. I simply made it say never.

Version

  • Tested on version 50.0.2660.0
  • Commit ae70d4a tested on version 51.0.2681.0

Usage

  • Setup your build environment by following the instructions at https://www.chromium.org/developers/how-tos
  • Clone this repo
  • Copy 0001-Remove-profile-management-button-from-title-bar.patch to your-build-folder/src/
  • Apply patch with git am < 0001-Remove-profile-management-button-from-title-bar.patch
  • Compile your build
  • Enjoy the clean UI

About

Patch to disable user profile avatar button in open source Chromium builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published