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

Issue 2163683005: Change ChooserController::Observer to ChooserController::View (Closed)

Created:
4 years, 5 months ago by juncai
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ChooserController::Observer to ChooserController::View Based on the comment from: https://codereview.chromium.org/2155743002/ This CL changes ChooserController::Observer to ChooserController::View to better reflect its purpose, since ChooserController needs to update its view when necessary. BUG=629878 Committed: https://crrev.com/796733012dd7fe6edf6e5360087447f3a2d187e1 Cr-Commit-Position: refs/heads/master@{#406696}

Patch Set 1 : changed ChooserController::Observer to ChooserController::View #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -37 lines) Patch
M chrome/browser/chooser_controller/chooser_controller.h View 1 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chooser_controller/mock_chooser_controller.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 4 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/chooser_content_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/chooser_content_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.cc View 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
juncai
msw@chromium.org, please review change in: //chrome/browser/ui/views/ //chrome/browser/ui/cocoa/ reillyg@chromium.org, please review change in: //chrome/browser/chooser_controller/ //chrome/browser/usb/ scheib@chromium.org, ...
4 years, 5 months ago (2016-07-20 18:08:02 UTC) #4
msw
lgtm with nits https://codereview.chromium.org/2163683005/diff/1/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2163683005/diff/1/chrome/browser/chooser_controller/chooser_controller.h#newcode30 chrome/browser/chooser_controller/chooser_controller.h:30: // implementation should register a view. ...
4 years, 5 months ago (2016-07-20 20:37:07 UTC) #7
scheib
LGTM, thanks.
4 years, 5 months ago (2016-07-20 20:54:53 UTC) #8
Reilly Grant (use Gerrit)
lgtm
4 years, 5 months ago (2016-07-20 20:57:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163683005/20001
4 years, 5 months ago (2016-07-20 22:25:09 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-20 22:31:17 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/796733012dd7fe6edf6e5360087447f3a2d187e1 Cr-Commit-Position: refs/heads/master@{#406696}
4 years, 5 months ago (2016-07-20 22:34:53 UTC) #19
juncai
4 years, 5 months ago (2016-07-20 22:37:45 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2163683005/diff/1/chrome/browser/chooser_cont...
File chrome/browser/chooser_controller/chooser_controller.h (right):

https://codereview.chromium.org/2163683005/diff/1/chrome/browser/chooser_cont...
chrome/browser/chooser_controller/chooser_controller.h:30: // implementation
should register a view.
On 2016/07/20 20:37:07, msw wrote:
> nit: "a view to observe changes"

Done.

https://codereview.chromium.org/2163683005/diff/1/chrome/browser/ui/bluetooth...
File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right):

https://codereview.chromium.org/2163683005/diff/1/chrome/browser/ui/bluetooth...
chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:110: if (view())
On 2016/07/20 20:37:07, msw wrote:
> nit: for each of these multi-line conditional blocks; please add curly braces,
> or change the comment pattern to something like:
>   // Notify the view that the Bluetooth adapter is turned off.
>   if (view())
>     view()->OnAdapterEnabledChanged(false);
> (or just remove the comments; the code is fairly self-evident)

Done.

Powered by Google App Engine
This is Rietveld 408576698