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

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

Issue 2627533002: Replace ShelfItemDelegate::GetTitle() with ShelfItem::title. (Closed)
Patch Set: Address comments. Created 3 years, 11 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_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
index 7cb1bd8f99b276134dc28b50921c8ce5133485b3..2890ada232759e18c1377ef626d8fc36729f2409 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
@@ -37,20 +37,6 @@ ArcAppDeferredLauncherItemController::ItemSelected(const ui::Event& event) {
return ash::ShelfItemDelegate::kNoAction;
}
-base::string16 ArcAppDeferredLauncherItemController::GetTitle() {
- ArcAppListPrefs* arc_prefs =
- ArcAppListPrefs::Get(launcher_controller()->profile());
- DCHECK(arc_prefs);
- std::unique_ptr<ArcAppListPrefs::AppInfo> app_info = arc_prefs->GetApp(
- ArcAppWindowLauncherController::GetArcAppIdFromShelfAppId(app_id()));
- if (!app_info) {
- NOTREACHED();
- return base::string16();
- }
-
- return base::UTF8ToUTF16(app_info->name);
-}
-
ash::ShelfMenuModel*
ArcAppDeferredLauncherItemController::CreateApplicationMenu(int event_flags) {
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698