| Index: chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
| index 7f1e3028dca558639bcb31b100ac1090d4b45355..6081c88ce691c81c56ff23f11afc1ca12190d892 100644
|
| --- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
| @@ -7,6 +7,7 @@
|
| #include <algorithm>
|
|
|
| #include "ash/wm/window_util.h"
|
| +#include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
|
| #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h"
|
| #include "chrome/browser/ui/ash/launcher/launcher_controller_helper.h"
|
| @@ -19,10 +20,12 @@ AppWindowLauncherItemController::AppWindowLauncherItemController(
|
| Type type,
|
| const std::string& app_id,
|
| const std::string& launch_id,
|
| + const std::string& title,
|
| ChromeLauncherController* controller)
|
| - : LauncherItemController(type, app_id, launch_id, controller),
|
| + : LauncherItemController(type, app_id, launch_id, title, controller),
|
| app_id_(app_id),
|
| launch_id_(launch_id),
|
| + title_(title),
|
| observed_windows_(this) {}
|
|
|
| AppWindowLauncherItemController::~AppWindowLauncherItemController() {}
|
| @@ -140,8 +143,11 @@ AppWindowLauncherItemController::ItemSelected(const ui::Event& event) {
|
| }
|
|
|
| base::string16 AppWindowLauncherItemController::GetTitle() {
|
| - return LauncherControllerHelper::GetAppTitle(launcher_controller()->profile(),
|
| - app_id());
|
| + if (!title().empty())
|
| + return base::UTF8ToUTF16(title());
|
| + else
|
| + return LauncherControllerHelper::GetAppTitle(
|
| + launcher_controller()->profile(), app_id());
|
| }
|
|
|
| bool AppWindowLauncherItemController::IsDraggable() {
|
|
|