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

Issue 2745223005: [ios] Adds a CommandDispatcher to Browser. (Closed)

Created:
3 years, 9 months ago by rohitrao (ping after 24h)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, lpromero+watch_chromium.org, ios-reviews+clean_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Moves CommandDispatcher to ios/shared and adds it to Browser. BUG=698748 Review-Url: https://codereview.chromium.org/2745223005 Cr-Commit-Position: refs/heads/master@{#459434} Committed: https://chromium.googlesource.com/chromium/src/+/0203b9af9ab794f10f9d59c4aaa01f5873695ed0

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move code into ios/shared. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -342 lines) Patch
M ios/chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/commands/BUILD.gn View 1 2 chunks +0 lines, -16 lines 0 comments Download
D ios/clean/chrome/browser/ui/commands/command_dispatcher.h View 1 1 chunk +0 lines, -24 lines 0 comments Download
D ios/clean/chrome/browser/ui/commands/command_dispatcher.mm View 1 1 chunk +0 lines, -55 lines 0 comments Download
D ios/clean/chrome/browser/ui/commands/command_dispatcher_unittest.mm View 1 1 chunk +0 lines, -236 lines 0 comments Download
M ios/clean/chrome/test/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/browser.h View 1 2 chunks +5 lines, -0 lines 1 comment Download
M ios/shared/chrome/browser/ui/browser_list/browser.mm View 1 1 chunk +3 lines, -1 line 0 comments Download
A + ios/shared/chrome/browser/ui/commands/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
A + ios/shared/chrome/browser/ui/commands/command_dispatcher.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/shared/chrome/browser/ui/commands/command_dispatcher.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/shared/chrome/browser/ui/commands/command_dispatcher_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (13 generated)
rohitrao (ping after 24h)
The code here should be uncontroversial, but this adds a dependency from ios/clean/chrome/browser -> ios/clean/chrome/browser/ui, ...
3 years, 9 months ago (2017-03-15 14:57:36 UTC) #3
lpromero
On 2017/03/15 14:57:36, rohitrao wrote: > The code here should be uncontroversial, but this adds ...
3 years, 9 months ago (2017-03-15 17:38:50 UTC) #4
lpromero
https://codereview.chromium.org/2745223005/diff/1/ios/clean/chrome/browser/model/BUILD.gn File ios/clean/chrome/browser/model/BUILD.gn (right): https://codereview.chromium.org/2745223005/diff/1/ios/clean/chrome/browser/model/BUILD.gn#newcode17 ios/clean/chrome/browser/model/BUILD.gn:17: "//ios/clean/chrome/browser/ui/commands", Should commands live on their own, outside of ...
3 years, 9 months ago (2017-03-15 17:38:55 UTC) #5
rohitrao (ping after 24h)
> To me the dispatcher doesn't belong to the UI layer, but implements interfaces > ...
3 years, 9 months ago (2017-03-15 17:41:24 UTC) #6
sdefresne
On 2017/03/15 17:41:24, rohitrao wrote: > > To me the dispatcher doesn't belong to the ...
3 years, 9 months ago (2017-03-15 17:49:29 UTC) #7
rohitrao (ping after 24h)
The dispatcher is playing a role similar to the responder chain, which makes it a ...
3 years, 9 months ago (2017-03-15 17:52:43 UTC) #9
lpromero
On 2017/03/15 17:52:43, rohitrao wrote: > The dispatcher is playing a role similar to the ...
3 years, 9 months ago (2017-03-15 17:57:08 UTC) #10
edchin
On 2017/03/15 17:57:08, lpromero wrote: > On 2017/03/15 17:52:43, rohitrao wrote: > > The dispatcher ...
3 years, 9 months ago (2017-03-15 18:05:53 UTC) #11
sdefresne
On 2017/03/15 17:57:08, lpromero wrote: > On 2017/03/15 17:52:43, rohitrao wrote: > > The dispatcher ...
3 years, 9 months ago (2017-03-15 18:08:22 UTC) #12
lpromero
On 2017/03/15 18:08:22, sdefresne wrote: > Mediators will also depends on model object and will ...
3 years, 9 months ago (2017-03-15 18:17:27 UTC) #13
rohitrao (ping after 24h)
Our directory structure is a bit weird, because I think it's important to mirror desktop. ...
3 years, 9 months ago (2017-03-15 18:19:43 UTC) #14
rohitrao (ping after 24h)
And you could argue that the dispatcher is neither Controller nor Model nor View, but ...
3 years, 9 months ago (2017-03-15 18:20:49 UTC) #15
marq (ping after 24h)
On 2017/03/15 18:20:49, rohitrao wrote: > And you could argue that the dispatcher is neither ...
3 years, 9 months ago (2017-03-16 08:35:56 UTC) #16
rohitrao (ping after 24h)
Rebased this on top of the Browser move and moved CommandDispatcher to ios/shared as well.
3 years, 9 months ago (2017-03-23 19:52:30 UTC) #21
edchin
lgtm.
3 years, 9 months ago (2017-03-23 20:03:37 UTC) #22
lpromero
lgtm
3 years, 9 months ago (2017-03-23 21:08:12 UTC) #23
lpromero
lgtm lgtm
3 years, 9 months ago (2017-03-23 21:08:12 UTC) #24
sczs
lgtm This is great since my dispatcher related CL needs this :)
3 years, 9 months ago (2017-03-24 01:22:26 UTC) #27
sdefresne
lgtm with a comment https://codereview.chromium.org/2745223005/diff/20001/ios/shared/chrome/browser/ui/browser_list/browser.h File ios/shared/chrome/browser/ui/browser_list/browser.h (right): https://codereview.chromium.org/2745223005/diff/20001/ios/shared/chrome/browser/ui/browser_list/browser.h#newcode36 ios/shared/chrome/browser/ui/browser_list/browser.h:36: __strong CommandDispatcher* dispatcher_; We discussed ...
3 years, 9 months ago (2017-03-24 09:10:19 UTC) #28
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/2745223005/20001
3 years, 9 months ago (2017-03-24 15:38:15 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 15:50:22 UTC) #34
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0203b9af9ab794f10f9d59c4aaa0...

Powered by Google App Engine
This is Rietveld 408576698