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

Issue 1984923002: Refactor ChooserBubbleController (Closed)

Created:
4 years, 7 months ago by juncai
Modified:
4 years, 6 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, droger+watchlist_chromium.org, groby-ooo-7-16, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, sdefresne+watchlist_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ChooserBubbleController This is part 1 of enabling the chooser UIs for Bluetooth from Apps to enable developers to make a transition. There are many common functionalities in ChooserBubbleController that chooser UI needs on both desktops and from Apps. But since now it is at: //chrome/browser/ui/website_settings/chooser_bubble_controller.h code from //extensions can not use it. This patch pulled some functionalities from ChooserBubbleController and moved it to ChooserController, which is added to //components/chooser_controller BUG=611917, 577170 Committed: https://crrev.com/bf183dd5c853046173f09abdd3313084d36d13a3 Cr-Commit-Position: refs/heads/master@{#396492}

Patch Set 1 : refactored ChooserBubbleController #

Patch Set 2 : added dep at components/chooser_controller/BUILD.gn #

Patch Set 3 : fixed compile error on Linux and Windows #

Total comments: 6

Patch Set 4 : address reillyg@'s comments #

Patch Set 5 : updated README for ChooserController #

Total comments: 6

Patch Set 6 : moved chooser_controller to //components/ui #

Patch Set 7 : rebase #

Total comments: 6

Patch Set 8 : address blundell@'s comments #

Patch Set 9 : refactored ChooserController and ChooserBubbleController #

Patch Set 10 : added missing include file #

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -736 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/DEPS View 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
D chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_controller.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -61 lines 0 comments Download
D chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -85 lines 0 comments Download
A chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm View 1 2 3 4 5 6 7 8 11 chunks +39 lines, -35 lines 0 comments Download
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h View 1 2 3 4 5 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/ui/website_settings/chooser_bubble_controller.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -104 lines 0 comments Download
M chrome/browser/ui/website_settings/chooser_bubble_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -37 lines 0 comments Download
A chrome/browser/ui/website_settings/chooser_bubble_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/website_settings/chooser_bubble_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
D chrome/browser/usb/usb_chooser_bubble_controller.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -74 lines 0 comments Download
M chrome/browser/usb/usb_chooser_bubble_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -159 lines 0 comments Download
A + chrome/browser/usb/usb_chooser_controller.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +14 lines, -17 lines 0 comments Download
A + chrome/browser/usb/usb_chooser_controller.cc View 1 2 3 4 5 6 7 8 7 chunks +37 lines, -33 lines 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download
A + components/chooser_controller.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -7 lines 0 comments Download
A + components/chooser_controller/BUILD.gn View 1 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
A + components/chooser_controller/DEPS View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/chooser_controller/OWNERS View 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
A components/chooser_controller/README View 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A + components/chooser_controller/chooser_controller.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -35 lines 0 comments Download
A components/chooser_controller/chooser_controller.cc View 1 2 3 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (14 generated)
juncai
Please take a look.
4 years, 7 months ago (2016-05-17 16:37:01 UTC) #3
Reilly Grant (use Gerrit)
lgtm with nits In your next patch can you expand the README with a diagram ...
4 years, 7 months ago (2016-05-17 17:19:00 UTC) #5
juncai
caitkp@chromium.org: Please review changes in //components sky@chromium.org: Please review changes in //chrome/browser/ui Updated README for ...
4 years, 7 months ago (2016-05-17 20:09:25 UTC) #7
sky
LGTM https://codereview.chromium.org/1984923002/diff/80001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h (right): https://codereview.chromium.org/1984923002/diff/80001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h#newcode24 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h:24: ChooserBubbleUiView(Browser* browser, ChooserController* controller); Document ownership. https://codereview.chromium.org/1984923002/diff/80001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h#newcode40 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h:40: ...
4 years, 7 months ago (2016-05-17 21:10:45 UTC) #8
Cait (Slow)
[+ other components/ OWNERS for their thoughts] I'm not sure how I feel about creating ...
4 years, 7 months ago (2016-05-18 19:51:01 UTC) #10
juncai
On 2016/05/18 19:51:01, Cait - OOO May 20-May 30 wrote: > [+ other components/ OWNERS ...
4 years, 7 months ago (2016-05-18 20:25:35 UTC) #11
sdefresne
On 2016/05/18 20:25:35, juncai wrote: > On 2016/05/18 19:51:01, Cait - OOO May 20-May 30 ...
4 years, 7 months ago (2016-05-19 09:32:13 UTC) #12
blundell
On 2016/05/19 09:32:13, sdefresne wrote: > On 2016/05/18 20:25:35, juncai wrote: > > On 2016/05/18 ...
4 years, 7 months ago (2016-05-19 10:37:15 UTC) #13
sdefresne
On 2016/05/19 10:37:15, blundell wrote: > On 2016/05/19 09:32:13, sdefresne wrote: > > On 2016/05/18 ...
4 years, 7 months ago (2016-05-19 13:20:10 UTC) #14
scheib
On 2016/05/19 13:20:10, sdefresne wrote: > On 2016/05/19 10:37:15, blundell wrote: > > On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 17:13:21 UTC) #15
juncai
https://codereview.chromium.org/1984923002/diff/80001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h (right): https://codereview.chromium.org/1984923002/diff/80001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h#newcode24 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h:24: ChooserBubbleUiView(Browser* browser, ChooserController* controller); On 2016/05/17 21:10:45, sky wrote: ...
4 years, 7 months ago (2016-05-19 23:29:15 UTC) #16
blundell
//components looks fine to me, but I'm hesitant to give an LG given that Cait ...
4 years, 7 months ago (2016-05-20 07:26:39 UTC) #17
juncai
https://codereview.chromium.org/1984923002/diff/110001/components/ui/chooser_controller/DEPS File components/ui/chooser_controller/DEPS (right): https://codereview.chromium.org/1984923002/diff/110001/components/ui/chooser_controller/DEPS#newcode2 components/ui/chooser_controller/DEPS:2: "+base", On 2016/05/20 07:26:39, blundell wrote: > nit: not ...
4 years, 7 months ago (2016-05-20 20:36:11 UTC) #18
Cait (Slow)
(Apologies for the slow reply -- I'm traveling this week. ) components/ lgtm as does ...
4 years, 7 months ago (2016-05-24 20:58:32 UTC) #19
juncai
I did a refactoring again. Can you take a look again? Thanks!
4 years, 7 months ago (2016-05-26 00:18:40 UTC) #20
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/1984923002/diff/190001/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h File chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h (right): https://codereview.chromium.org/1984923002/diff/190001/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h#newcode30 chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h:30: BluetoothChooserController* bluetooth_chooser_controller_; // Weak. Please be more specific ...
4 years, 7 months ago (2016-05-26 00:56:53 UTC) #22
blundell
Please don't land this without addressing the below issue: You moved the component into //components/ui. ...
4 years, 7 months ago (2016-05-26 07:11:54 UTC) #23
juncai
On 2016/05/26 07:11:54, blundell wrote: > Please don't land this without addressing the below issue: ...
4 years, 7 months ago (2016-05-26 18:13:27 UTC) #24
juncai
https://codereview.chromium.org/1984923002/diff/190001/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h File chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h (right): https://codereview.chromium.org/1984923002/diff/190001/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h#newcode30 chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h:30: BluetoothChooserController* bluetooth_chooser_controller_; // Weak. On 2016/05/26 00:56:53, Reilly Grant ...
4 years, 7 months ago (2016-05-26 18:13:39 UTC) #25
blundell
lgtm, thanks!
4 years, 7 months ago (2016-05-27 08:05:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1984923002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1984923002/210001
4 years, 6 months ago (2016-05-27 15:47:48 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/191190)
4 years, 6 months ago (2016-05-27 15:55:04 UTC) #32
juncai
avi@chromium.org: Please review: //components/chooser_controller/DEPS since presubmit failed because of: Missing LGTM from OWNERS of dependencies ...
4 years, 6 months ago (2016-05-27 16:26:28 UTC) #34
Avi (use Gerrit)
On 2016/05/27 16:26:28, juncai wrote: > mailto:avi@chromium.org: > Please review: > //components/chooser_controller/DEPS > > since ...
4 years, 6 months ago (2016-05-27 16:35:46 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1984923002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1984923002/210001
4 years, 6 months ago (2016-05-27 16:53:08 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 6 months ago (2016-05-27 16:57:38 UTC) #39
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 17:00:22 UTC) #41
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/bf183dd5c853046173f09abdd3313084d36d13a3
Cr-Commit-Position: refs/heads/master@{#396492}

Powered by Google App Engine
This is Rietveld 408576698