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

Unified Diff: components/exo/shell_surface.cc

Issue 2860503002: mash: Replace int ShelfIDs with AppLaunchID strings. (Closed)
Patch Set: Fix struct traits typo. Created 3 years, 7 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 | « chrome/browser/ui/views/task_manager_view.cc ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index a3da0c3e086315b33e6d6ec7a164f2ae030427f8..03ec9aa9fa261678c8f810f1aa3601b602695729 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -555,13 +555,13 @@ void ShellSurface::UpdateSystemModal() {
void ShellSurface::SetApplicationId(aura::Window* window,
const std::string& id) {
TRACE_EVENT1("exo", "ShellSurface::SetApplicationId", "application_id", id);
- window->SetProperty(aura::client::kAppIdKey, new std::string(id));
+ window->SetProperty(ash::kShelfIDKey, new ash::ShelfID(id));
}
// static
const std::string ShellSurface::GetApplicationId(aura::Window* window) {
- std::string* string_ptr = window->GetProperty(aura::client::kAppIdKey);
- return string_ptr ? *string_ptr : std::string();
+ ash::ShelfID* shelf_id = window->GetProperty(ash::kShelfIDKey);
+ return shelf_id ? shelf_id->app_id : std::string();
}
void ShellSurface::SetApplicationId(const std::string& application_id) {
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698