Skip to content

Commit

Permalink
Remove the mac_views_browser gn variable.
Browse files Browse the repository at this point in the history
It's now redundant with is_mac.

The biggest use of it was that it set the buildflag MAC_VIEWS_BROWSER,
but I removed all references to that in the last few days:
https://cs.chromium.org/chromium/src/ui/base/BUILD.gn?q=%5CbMAC_VIEWS_BROWSER+case:yes

Bug: 832676
Change-Id: I9bd74e26a35ddb4dfec786e4b0a6ada24366c951
Reviewed-on: https://chromium-review.googlesource.com/c/1258295
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596238}
  • Loading branch information
nico authored and Commit Bot committed Oct 3, 2018
1 parent 42f3335 commit b0f4108
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 144 deletions.
6 changes: 2 additions & 4 deletions chrome/app/theme/theme_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,8 @@
<if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND" file="mac/theme_default_inactive.png" />
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND_INACTIVE" file="mac/theme_default_inactive_background.png" />
<if expr="mac_views_browser">
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND_INCOGNITO" file="mac/theme_default_inactive.png" />
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND_INCOGNITO_INACTIVE" file="mac/theme_default_inactive_background.png" />
</if>
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND_INCOGNITO" file="mac/theme_default_inactive.png" />
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND_INCOGNITO_INACTIVE" file="mac/theme_default_inactive_background.png" />
</if>
<if expr="not is_macosx">
<structure type="chrome_scaled_image" name="IDR_THEME_TAB_BACKGROUND" file="notused.png" />
Expand Down
6 changes: 1 addition & 5 deletions chrome/browser/ui/views/browser_dialogs_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
#include "chrome/browser/ui/views_mode_controller.h"

// This file provides definitions of desktop browser dialog-creation methods for
// all toolkit-views platforms other than Mac. It also provides the definitions
// on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is
// excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may
// select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog
// provided by browser_dialogs.h.
// all toolkit-views platforms.
// static
scoped_refptr<LoginHandler> LoginHandler::Create(
net::AuthChallengeInfo* auth_info,
Expand Down
1 change: 0 additions & 1 deletion chrome/common/features.gni
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ chrome_grit_defines = [
"enable_printing=$enable_basic_printing",
"enable_service_discovery=$enable_service_discovery",
"enable_vr=$enable_vr",
"mac_views_browser=$mac_views_browser",
"safe_browsing_mode=$safe_browsing_mode",
"optimize_webui=$optimize_webui",
]
Loading

0 comments on commit b0f4108

Please sign in to comment.