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

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

Issue 2290603002: Enhance chrome.app.window API for shelf integration with pinning support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_deferred_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
index 247a047e2bb1681bff1b7bcf8a0f1c37cf805dee..3dad13ed4aa96a7434c4408590d5c8795b6b6f2f 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
@@ -99,7 +99,8 @@ void ArcAppDeferredLauncherController::Close(const std::string& app_id) {
if (it == app_controller_map_.end())
return;
- const ash::ShelfID shelf_id = owner_->GetShelfIDForAppID(shelf_app_id);
+ const ash::ShelfID shelf_id =
+ owner_->GetShelfIDForAppID(shelf_app_id, shelf_app_id);
const bool need_close_item =
it->second == owner_->GetLauncherItemController(shelf_id);
app_controller_map_.erase(it);
@@ -158,7 +159,8 @@ void ArcAppDeferredLauncherController::RegisterDeferredLaunch(
const std::string& app_id) {
const std::string shelf_app_id =
ArcAppWindowLauncherController::GetShelfAppIdFromArcAppId(app_id);
- const ash::ShelfID shelf_id = owner_->GetShelfIDForAppID(shelf_app_id);
+ const ash::ShelfID shelf_id =
+ owner_->GetShelfIDForAppID(shelf_app_id, shelf_app_id);
if (shelf_id) {
LauncherItemController* controller =

Powered by Google App Engine
This is Rietveld 408576698