Commit f61958a3 authored by shrike's avatar shrike Committed by Commit bot

[Mac][Material Design] Use white tab spinner for dark themes.

In Material Design we display a white tab spinner for Incognito mode
tabs, but we need to also do so for dark themes.

R=avi@chromium.org
BUG=624106

Review-Url: https://codereview.chromium.org/2103073003
Cr-Commit-Position: refs/heads/master@{#402643}
parent d838a561
...@@ -1564,7 +1564,7 @@ private: ...@@ -1564,7 +1564,7 @@ private:
} else if (contents->IsWaitingForResponse()) { } else if (contents->IsWaitingForResponse()) {
newState = kTabWaiting; newState = kTabWaiting;
if (ui::MaterialDesignController::IsModeMaterial() && if (ui::MaterialDesignController::IsModeMaterial() &&
[[[tabController view] window] inIncognitoMode]) { [[[tabController view] window] hasDarkTheme]) {
throbberImage = throbberWaitingIncognitoImage; throbberImage = throbberWaitingIncognitoImage;
} else { } else {
throbberImage = throbberWaitingImage; throbberImage = throbberWaitingImage;
...@@ -1572,7 +1572,7 @@ private: ...@@ -1572,7 +1572,7 @@ private:
} else if (contents->IsLoadingToDifferentDocument()) { } else if (contents->IsLoadingToDifferentDocument()) {
newState = kTabLoading; newState = kTabLoading;
if (ui::MaterialDesignController::IsModeMaterial() && if (ui::MaterialDesignController::IsModeMaterial() &&
[[[tabController view] window] inIncognitoMode]) { [[[tabController view] window] hasDarkTheme]) {
throbberImage = throbberLoadingIncognitoImage; throbberImage = throbberLoadingIncognitoImage;
} else { } else {
throbberImage = throbberLoadingImage; throbberImage = throbberLoadingImage;
......
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