Index: ash/mus/bridge/wm_window_mus.cc |
diff --git a/ash/mus/bridge/wm_window_mus.cc b/ash/mus/bridge/wm_window_mus.cc |
index b0a2a7f22acd07c24ee18098adbb312bf5dcf5f5..f52b9d9204a215d92a00fddd74376250fa32cd97 100644 |
--- a/ash/mus/bridge/wm_window_mus.cc |
+++ b/ash/mus/bridge/wm_window_mus.cc |
@@ -181,6 +181,13 @@ void WmWindowMus::SetName(const char* name) { |
} |
} |
+std::string WmWindowMus::GetName() const { |
+ return window_->HasSharedProperty(::ui::mojom::WindowManager::kName_Property) |
+ ? window_->GetSharedProperty<std::string>( |
+ ::ui::mojom::WindowManager::kName_Property) |
+ : std::string(); |
+} |
+ |
base::string16 WmWindowMus::GetTitle() const { |
return GetWindowTitle(window_); |
} |