diff options
Diffstat (limited to 'athena/content/web_activity.cc')
-rw-r--r-- | athena/content/web_activity.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/athena/content/web_activity.cc b/athena/content/web_activity.cc index da1cfd5..f304694 100644 --- a/athena/content/web_activity.cc +++ b/athena/content/web_activity.cc @@ -7,6 +7,7 @@ #include "athena/activity/public/activity_factory.h" #include "athena/activity/public/activity_manager.h" #include "athena/input/public/accelerator_manager.h" +#include "base/strings/utf_string_conversions.h" #include "content/public/browser/native_web_keyboard_event.h" #include "content/public/browser/navigation_controller.h" #include "content/public/browser/web_contents.h" @@ -357,7 +358,9 @@ SkColor WebActivity::GetRepresentativeColor() const { } base::string16 WebActivity::GetTitle() const { - return web_view_ ? web_view_->GetWebContents()->GetTitle() : base::string16(); + return web_view_ ? base::UTF8ToUTF16( + web_view_->GetWebContents()->GetVisibleURL().host()) + : base::string16(); } bool WebActivity::UsesFrame() const { |