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

Unified Diff: components/exo/shell_surface.cc

Issue 2860503002: mash: Replace int ShelfIDs with AppLaunchID strings. (Closed)
Patch Set: Restore AppLaunchId class via using ShelfID = AppLaunchId; cleanup. 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
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index a3da0c3e086315b33e6d6ec7a164f2ae030427f8..1bf04e7162918e4bf57ce4ca35ff1eb11f8a271e 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) {

Powered by Google App Engine
This is Rietveld 408576698