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

Unified Diff: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues. 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
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>());

Powered by Google App Engine
This is Rietveld 408576698