Index: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc |
diff --git a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc |
index c93001331dbc58c06b419d10e94d2c75dca533c6..7bf899c300268becffce204989d0aa60fa40f0e8 100644 |
--- a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc |
+++ b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc |
@@ -4,16 +4,28 @@ |
#include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h" |
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
+#include "chrome/browser/task_manager/task_manager_util.h" |
+#include "chrome/grit/generated_resources.h" |
#include "components/renderer_context_menu/context_menu_delegate.h" |
+#include "ui/base/l10n/l10n_util.h" |
namespace extensions { |
-ChromeAppViewGuestDelegate::ChromeAppViewGuestDelegate() { |
+ChromeAppViewGuestDelegate::ChromeAppViewGuestDelegate( |
+ extensions::AppViewGuest* app_view_guest) |
+ : AppViewGuestDelegate(app_view_guest) { |
} |
ChromeAppViewGuestDelegate::~ChromeAppViewGuestDelegate() { |
} |
+base::string16 ChromeAppViewGuestDelegate::GetTaskName() const { |
+ const int message_id = IDS_TASK_MANAGER_APPVIEW_TAG_PREFIX; |
+ base::string16 title = |
+ task_manager::util::GetTitleFromWebContents(guest_web_contents()); |
+ return l10n_util::GetStringFUTF16(message_id, title); |
+} |
+ |
bool ChromeAppViewGuestDelegate::HandleContextMenu( |
content::WebContents* web_contents, |
const content::ContextMenuParams& params) { |