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

Unified Diff: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_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/browser_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
index ff45c10dd6aa78685a65722f1bc071948f38bf01..16af321f5054745bc49f4a593b9f7182e9754e96 100644
--- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
@@ -172,11 +172,11 @@ void BrowserShortcutLauncherItemController::SetShelfIDForBrowserWindowContents(
return;
}
+ const ash::ShelfID shelf_id =
+ ChromeLauncherController::instance()->GetShelfIDForWebContents(
+ web_contents);
browser->window()->GetNativeWindow()->SetProperty(
- ash::kShelfIDKey,
- new ash::ShelfID(
- ChromeLauncherController::instance()->GetShelfIDForWebContents(
- web_contents)));
+ ash::kShelfIDKey, new std::string(shelf_id.Serialize()));
}
void BrowserShortcutLauncherItemController::ItemSelected(

Powered by Google App Engine
This is Rietveld 408576698