Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 1482183002: Fix content_setting_image_view compile on mac_views_browser (Closed)

Created:
5 years ago by tapted
Modified:
5 years ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix content_setting_image_view compile on mac_views_browser This broke in r361436 when adding vector icon support because methods that the views code requires from the model were hidden on Mac. When mac_views_browser=1 is set in GYP_DEFINES, the toolkit-views browser's content_setting_image_view.cc is part of the build, and it wasn't able to see methods such as ContentSettingImageModel::GetIcon() on Mac. To use content_setting_image_view on Mac in the transition, it needs to support both Views and Cocoa on Mac (at least for compiling). BUG=425229 Committed: https://crrev.com/cbc7360e60b8f0983867c44a0813c6a08d693afc Cr-Commit-Position: refs/heads/master@{#363820}

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : rebase #

Patch Set 4 : selfnit: update comment #

Patch Set 5 : No real need for the other #defines either.. #

Total comments: 2

Patch Set 6 : Hide raster icons on non-Mac #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -40 lines) Patch
M chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.h View 1 2 3 4 5 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.cc View 1 2 3 4 9 chunks +6 lines, -22 lines 2 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
tapted
Hi Evan, please take a look
5 years ago (2015-12-07 12:46:25 UTC) #5
Evan Stade
I feel like the right define here would be TOOLKIT_VIEWS but for some reason TOOLKIT_VIEW ...
5 years ago (2015-12-07 20:01:28 UTC) #6
tapted
On 2015/12/07 20:01:28, Evan Stade wrote: > I feel like the right define here would ...
5 years ago (2015-12-08 01:50:10 UTC) #7
Evan Stade
https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode29 chrome/browser/ui/content_settings/content_setting_image_model.cc:29: return false; don't you want this to be true ...
5 years ago (2015-12-08 01:54:10 UTC) #8
tapted
https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode29 chrome/browser/ui/content_settings/content_setting_image_model.cc:29: return false; On 2015/12/08 01:54:10, Evan Stade wrote: > ...
5 years ago (2015-12-08 02:18:22 UTC) #9
Evan Stade
On 2015/12/08 02:18:22, tapted wrote: > https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc > File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): > > https://codereview.chromium.org/1482183002/diff/100001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode29 > ...
5 years ago (2015-12-08 02:21:25 UTC) #10
tapted
On 2015/12/08 02:21:25, Evan Stade wrote: > I think it would be broken if you ...
5 years ago (2015-12-08 02:28:53 UTC) #11
tapted
+bauerb - PTAL for c/b/ui/content_settings OWNERS
5 years ago (2015-12-08 02:29:02 UTC) #13
Bernhard Bauer
lgtm
5 years ago (2015-12-08 10:12:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482183002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482183002/100001
5 years ago (2015-12-08 11:50:25 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-08 23:21:24 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-08 23:22:50 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cbc7360e60b8f0983867c44a0813c6a08d693afc
Cr-Commit-Position: refs/heads/master@{#363820}

Powered by Google App Engine
This is Rietveld 408576698