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

Issue 2011963002: PermissionSelectorView: use Combobox on MacViews builds. (Closed)

Created:
4 years, 7 months ago by Elly Fong-Jones
Modified:
4 years, 6 months ago
Reviewers:
palmer
CC:
chromium-reviews, tfarina, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PermissionSelectorView: use Combobox on MacViews builds. The Cocoa version of this dialog uses the cocoa equivalent of Comboboxes. Also, Comboboxes on MacViews have appropriate styling, whereas MenuButtons don't and changing them to have it seems quite involved. This CL involves adapting the permission selector's MenuModel to a ComboboxModel, then creating a Combobox instead of a MenuButton on Mac. BUG=605161 Committed: https://crrev.com/5acf0c2022fc685f2250a54eea3b6e2bfc90dc60 Cr-Commit-Position: refs/heads/master@{#399034}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fix nits #

Patch Set 3 : Document DCHECK #

Patch Set 4 : Give up on SetPermissionInfo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -24 lines) Patch
M chrome/browser/ui/views/website_settings/permission_selector_view.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_view.cc View 1 2 3 6 chunks +163 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view_unittest.cc View 1 2 3 5 chunks +31 lines, -8 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
Elly Fong-Jones
palmer: ptal? :)
4 years, 7 months ago (2016-05-25 15:45:05 UTC) #3
palmer
Some nits. https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc File chrome/browser/ui/views/website_settings/permission_selector_view.cc (right): https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc#newcode118 chrome/browser/ui/views/website_settings/permission_selector_view.cc:118: // This class adapts a PermissionMenuModel into ...
4 years, 7 months ago (2016-05-25 18:34:39 UTC) #4
Elly Fong-Jones
palmer: ptal? :) https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc File chrome/browser/ui/views/website_settings/permission_selector_view.cc (right): https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc#newcode118 chrome/browser/ui/views/website_settings/permission_selector_view.cc:118: // This class adapts a PermissionMenuModel ...
4 years, 7 months ago (2016-05-26 13:40:38 UTC) #5
palmer
lgtm https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc File chrome/browser/ui/views/website_settings/permission_selector_view.cc (right): https://codereview.chromium.org/2011963002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_view.cc#newcode149 chrome/browser/ui/views/website_settings/permission_selector_view.cc:149: checked_index = i; > I avoided early return ...
4 years, 7 months ago (2016-05-26 19:10:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011963002/40001
4 years, 6 months ago (2016-05-27 18:13:51 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/235304)
4 years, 6 months ago (2016-05-27 19:23:19 UTC) #11
Evan Stade
what's the status of this patch? It will be helpful to me for fixing crbug.com/615308
4 years, 6 months ago (2016-06-01 21:22:44 UTC) #12
Elly Fong-Jones
On 2016/06/01 21:22:44, Evan Stade wrote: > what's the status of this patch? It will ...
4 years, 6 months ago (2016-06-02 14:42:03 UTC) #13
Elly Fong-Jones
On 2016/06/02 14:42:03, Elly Jones wrote: > On 2016/06/01 21:22:44, Evan Stade wrote: > > ...
4 years, 6 months ago (2016-06-07 20:59:28 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011963002/60001
4 years, 6 months ago (2016-06-07 21:02:37 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 22:00:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011963002/60001
4 years, 6 months ago (2016-06-09 21:02:09 UTC) #21
palmer
Still LGTM.
4 years, 6 months ago (2016-06-09 21:02:29 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-09 22:08:10 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 22:08:37 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 22:09:36 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5acf0c2022fc685f2250a54eea3b6e2bfc90dc60
Cr-Commit-Position: refs/heads/master@{#399034}

Powered by Google App Engine
This is Rietveld 408576698