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

Unified Diff: ash/shell/window_watcher.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
« no previous file with comments | « ash/shelf/shelf_window_watcher_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 0dd36307c2a45cfa031b8885ff16c8129a298bcb..cc991ac415ab96f52fc63c4347ad1f14f2965996 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -117,7 +117,7 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
model->SetShelfItemDelegate(
item.id, base::MakeUnique<WindowWatcherShelfItemDelegate>(item.id, this));
- new_window->SetProperty(kShelfIDKey, new ShelfID(item.id));
+ new_window->SetProperty(kShelfIDKey, new std::string(item.id.Serialize()));
}
void WindowWatcher::OnWillRemoveWindow(aura::Window* window) {
« no previous file with comments | « ash/shelf/shelf_window_watcher_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698