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

Unified Diff: ash/common/test/test_shelf_delegate.cc

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: rebase Created 3 years, 10 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/common/shelf/shelf_window_watcher_unittest.cc ('k') | ash/common/wm/always_on_top_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_shelf_delegate.cc
diff --git a/ash/common/test/test_shelf_delegate.cc b/ash/common/test/test_shelf_delegate.cc
index 24a1ad503cc4f3ee0c5e045f6d5861f3482082c6..ee762fdc6958a4aa826c6777e5879ec7c8e4edc7 100644
--- a/ash/common/test/test_shelf_delegate.cc
+++ b/ash/common/test/test_shelf_delegate.cc
@@ -12,8 +12,8 @@
#include "ash/common/test/test_shelf_item_delegate.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_property.h"
#include "ash/root_window_controller.h"
+#include "ash/wm/window_properties.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/window.h"
@@ -62,7 +62,7 @@ void TestShelfDelegate::AddShelfItem(WmWindow* window) {
void TestShelfDelegate::AddShelfItem(WmWindow* window,
const std::string& app_id) {
AddShelfItem(window, STATUS_CLOSED);
- ShelfID shelf_id = window->GetIntProperty(WmWindowProperty::SHELF_ID);
+ ShelfID shelf_id = window->aura_window()->GetProperty(kShelfIDKey);
AddShelfIDToAppIDMapping(shelf_id, app_id);
}
@@ -80,11 +80,11 @@ void TestShelfDelegate::AddShelfItem(WmWindow* window, ShelfItemStatus status) {
model->SetShelfItemDelegate(id,
base::MakeUnique<TestShelfItemDelegate>(window));
- window->SetIntProperty(WmWindowProperty::SHELF_ID, id);
+ window->aura_window()->SetProperty(kShelfIDKey, id);
}
void TestShelfDelegate::RemoveShelfItemForWindow(WmWindow* window) {
- ShelfID shelf_id = window->GetIntProperty(WmWindowProperty::SHELF_ID);
+ ShelfID shelf_id = window->aura_window()->GetProperty(kShelfIDKey);
if (shelf_id == 0)
return;
ShelfModel* model = WmShell::Get()->shelf_model();
« no previous file with comments | « ash/common/shelf/shelf_window_watcher_unittest.cc ('k') | ash/common/wm/always_on_top_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698