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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2878133002: mash: Serialize ShelfIDs for property conversion and transport. (Closed)
Patch Set: Address comments. 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: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index d96c0053fa3c39002e24ba5c074f4096dde1065c..597cf07397a5dfdb27bb763211c872aa5713ead8 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -418,8 +418,8 @@ void ArcAppWindowLauncherController::AttachControllerToWindowIfNeeded(
base::MakeUnique<AppWindow>(task_id, info->app_shelf_id(), widget, this));
RegisterApp(info);
DCHECK(info->app_window()->controller());
- window->SetProperty(ash::kShelfIDKey,
- new ash::ShelfID(info->app_window()->shelf_id()));
+ const ash::ShelfID shelf_id(info->app_window()->shelf_id());
+ window->SetProperty(ash::kShelfIDKey, new std::string(shelf_id.Serialize()));
if (ash::Shell::Get()
->maximize_mode_controller()
->IsMaximizeModeWindowManagerEnabled()) {

Powered by Google App Engine
This is Rietveld 408576698