Chromium Code Reviews| Index: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
| diff --git a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
| index e3a1f4b8a24225a30cde42b716f26911f2bea5ef..e800489d607ff634ab496dbd374ae8ba054758e9 100644 |
| --- a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
| +++ b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
| @@ -6,6 +6,7 @@ |
| #include "ash/public/cpp/mus_property_mirror_ash.h" |
| #include "ash/public/cpp/window_properties.h" |
| +#include "ash/public/interfaces/window_pin_type.mojom.h" |
| #include "ash/root_window_controller.h" |
| #include "ash/shell.h" |
| #include "base/memory/ptr_util.h" |
| @@ -54,6 +55,9 @@ void ChromeBrowserMainExtraPartsAsh::ServiceManagerConnectionStarted( |
| ash::kShelfItemTypeKey, |
| ui::mojom::WindowManager::kShelfItemType_Property, |
| base::Bind(&ash::IsValidShelfItemType)); |
| + converter->RegisterProperty( |
| + ash::kWindowPinTypeKey, ash::mojom::kWindowPinType_Property, |
| + aura::PropertyConverter::CreateAcceptAnyValueCallback()); |
|
sky
2017/04/04 17:04:57
How come you don't need to validate the property?
Peng
2017/04/04 17:38:00
I thought mojo ipc will verify the ash::mojom::Win
|
| mus_client->SetMusPropertyMirror( |
| base::MakeUnique<ash::MusPropertyMirrorAsh>()); |