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

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)

Created:
3 years, 8 months ago by sky
Modified:
3 years, 8 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, rjkroege, kalyank, sadrul, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extracts parameters to WindowTreeHostMus into structure I'm going to need to pass additional parameters to the constructor. It's getting a bit unwieldy and having two constructors for two different purposes is error prone. So, I've extracted the paramters into a structure and created a factory function for the common case. BUG=708287 TEST=covered by tests R=erg@chromium.org Review-Url: https://codereview.chromium.org/2823903005 Cr-Commit-Position: refs/heads/master@{#465685} Committed: https://chromium.googlesource.com/chromium/src/+/a5a9fddc48214cb8114e39fe1659e130a178cc3a

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1

Patch Set 3 : merge 2 trunk #

Patch Set 4 : move constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -109 lines) Patch
M ash/mus/window_manager_unittest.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_mus.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M ui/aura/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 16 chunks +34 lines, -23 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.h View 1 2 3 2 chunks +3 lines, -23 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 2 3 4 chunks +18 lines, -39 lines 0 comments Download
A ui/aura/mus/window_tree_host_mus_init_params.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A ui/aura/mus/window_tree_host_mus_init_params.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/test/native_widget_factory_aura_mus.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
sky
3 years, 8 months ago (2017-04-19 03:21:11 UTC) #1
Elliot Glaysher
https://codereview.chromium.org/2823903005/diff/20001/ui/aura/mus/window_tree_host_mus_init_params.h File ui/aura/mus/window_tree_host_mus_init_params.h (right): https://codereview.chromium.org/2823903005/diff/20001/ui/aura/mus/window_tree_host_mus_init_params.h#newcode46 ui/aura/mus/window_tree_host_mus_init_params.h:46: AURA_EXPORT std::unique_ptr<WindowTreeHostMusInitParams> Is there a reason you're using a ...
3 years, 8 months ago (2017-04-19 17:17:33 UTC) #6
sky
Good idea. Done.
3 years, 8 months ago (2017-04-19 17:52:26 UTC) #7
Elliot Glaysher
lgtm
3 years, 8 months ago (2017-04-19 17:58:25 UTC) #10
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/2823903005/60001
3 years, 8 months ago (2017-04-19 18:00:59 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 19:00:11 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a5a9fddc48214cb8114e39fe1659...

Powered by Google App Engine
This is Rietveld 408576698