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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_mus.cc

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)
Patch Set: move constructor Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame_mus.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_mus.cc b/chrome/browser/ui/views/frame/browser_frame_mus.cc
index 44dbe827da313dc7d91d72d1cead30575d8e5c0e..5cec3a134687f77cb6b92fb4fb2ae2e2d6356bfc 100644
--- a/chrome/browser/ui/views/frame/browser_frame_mus.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_mus.cc
@@ -12,6 +12,7 @@
#include "chrome/common/extensions/extension_constants.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
+#include "ui/aura/mus/window_tree_host_mus_init_params.h"
#include "ui/views/mus/desktop_window_tree_host_mus.h"
#include "ui/views/mus/mus_client.h"
#include "ui/views/mus/window_manager_frame_values.h"
@@ -47,9 +48,12 @@ views::Widget::InitParams BrowserFrameMus::GetWidgetParams() {
mojo::ConvertTo<std::vector<uint8_t>>(
static_cast<int32_t>(ash::mojom::WindowStyle::BROWSER));
#endif
+ aura::WindowTreeHostMusInitParams window_tree_host_init_params =
+ aura::CreateInitParamsForTopLevel(
+ views::MusClient::Get()->window_tree_client(), std::move(properties));
std::unique_ptr<views::DesktopWindowTreeHostMus> desktop_window_tree_host =
base::MakeUnique<views::DesktopWindowTreeHostMus>(
- browser_frame_, this, cc::FrameSinkId(), &properties);
+ std::move(window_tree_host_init_params), browser_frame_, this);
// BrowserNonClientFrameViewMus::OnBoundsChanged() takes care of updating
// the insets.
desktop_window_tree_host->set_auto_update_client_area(false);
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698