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

Unified Diff: ash/mus/property_util.cc

Issue 2411913003: Converts ash/wm/mru_window_tracker_unittest.cc to use AshTest (Closed)
Patch Set: comment Created 4 years, 2 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: ash/mus/property_util.cc
diff --git a/ash/mus/property_util.cc b/ash/mus/property_util.cc
index 4d199df8083c76b9cb84b64d5eb6fb534807f171..ea9a2e5812f289ebdc94b25b65b9aabebe1db5e1 100644
--- a/ash/mus/property_util.cc
+++ b/ash/mus/property_util.cc
@@ -265,5 +265,17 @@ int64_t GetInitialDisplayId(const ui::Window::SharedProperties& properties) {
: mojo::ConvertTo<int64_t>(iter->second);
}
+void SetExcludeFromMru(ui::Window* window, bool value) {
+ window->SetSharedProperty<bool>(
msw 2016/10/11 22:36:05 aside: it'd be nice to have something like ui::Win
sky 2016/10/11 22:57:04 I think the way we set shared properties is too ve
+ ui::mojom::WindowManager::kExcludeFromMru_Property, value);
+}
+
+bool GetExcludeFromMru(const ui::Window* window) {
+ return window->HasSharedProperty(
+ ui::mojom::WindowManager::kExcludeFromMru_Property) &&
+ window->GetSharedProperty<bool>(
+ ui::mojom::WindowManager::kExcludeFromMru_Property);
+}
+
} // namespace mus
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698