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

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
« no previous file with comments | « ash/mus/property_util.h ('k') | ash/mus/wm/mru_window_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>(
+ 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
« no previous file with comments | « ash/mus/property_util.h ('k') | ash/mus/wm/mru_window_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698