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

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

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: 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
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 4efb236edb71b1acb5f63f159f8dfb543d9f3485..f1c1c9625d9ca76ae5ad728ffa9b72e18b0bc325 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
@@ -10,9 +10,9 @@
#include "ash/common/shelf/shelf_model.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_property.h"
#include "ash/public/cpp/shelf_application_menu_item.h"
#include "ash/resources/grit/ash_resources.h"
+#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -132,10 +132,9 @@ void BrowserShortcutLauncherItemController::SetShelfIDForBrowserWindowContents(
IsSettingsBrowser(browser))
return;
- ash::WmWindow::Get(browser->window()->GetNativeWindow())
- ->SetIntProperty(
- ash::WmWindowProperty::SHELF_ID,
- launcher_controller()->GetShelfIDForWebContents(web_contents));
+ browser->window()->GetNativeWindow()->SetProperty(
+ ash::kShelfIDKey,
+ launcher_controller()->GetShelfIDForWebContents(web_contents));
}
ash::ShelfAction BrowserShortcutLauncherItemController::ItemSelected(

Powered by Google App Engine
This is Rietveld 408576698