Commit 1e91cca8 authored by calamity@chromium.org's avatar calamity@chromium.org

Re-enable runtime badging of browser windows.

This CL fixes an issue with the profile icon not showing up if the user
has pinned the default chrome shortcut to the taskbar.

Using the runtime badging on top of the taskbar icon's badge causes the badge to look slightly darker around the edges at runtime.

BUG=313800

Review URL: https://codereview.chromium.org/54053008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233433 0039d316-1c4b-4281-b951-d872f2087c98
parent a9418f6e
...@@ -115,15 +115,16 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() { ...@@ -115,15 +115,16 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() {
} }
// For popups and panels which don't have the avatar button, we still // For popups and panels which don't have the avatar button, we still
// need to draw the taskbar decoration. Draw the avatar for // need to draw the taskbar decoration. Even though we have an icon on the
// custom-user-data-dir windows which don't support having a shortcut icon. // window's relaunch details, we draw over it because the user may have pinned
// For non-custom-user-data-dir windows, the window's relaunch details are set // the badge-less Chrome shortcut which will cause windows to ignore the
// so that the profile's shortcut icon is used, which includes this badge. // relaunch details.
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir)) { // TODO(calamity): ideally this should not be necessary but due to issues with
chrome::DrawTaskbarDecoration( // the default shortcut being pinned, we add the runtime badge for safety.
frame_->GetNativeWindow(), // See crbug.com/313800.
AvatarMenu::ShouldShowAvatarMenu() ? &avatar : NULL); chrome::DrawTaskbarDecoration(
} frame_->GetNativeWindow(),
AvatarMenu::ShouldShowAvatarMenu() ? &avatar : NULL);
} }
void BrowserNonClientFrameView::UpdateNewStyleAvatarInfo( void BrowserNonClientFrameView::UpdateNewStyleAvatarInfo(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment