diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-12 21:31:20 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-12 21:33:19 +0000 |
commit | 60249fc9df143138c02e222ade8c8194f7f4ba74 (patch) | |
tree | 2e6347ef3b3fe3dceadbcc5691d4b924bcbee37c /athena/content | |
parent | 92a80fefb8b288e63e50a6b24f1ad473f076f42e (diff) | |
download | chromium_src-60249fc9df143138c02e222ade8c8194f7f4ba74.zip chromium_src-60249fc9df143138c02e222ade8c8194f7f4ba74.tar.gz chromium_src-60249fc9df143138c02e222ade8c8194f7f4ba74.tar.bz2 |
athena: Show the hostname in the caption instead of the page-title.
BUG=401569
R=oshima@chromium.org
Review URL: https://codereview.chromium.org/456243002
Cr-Commit-Position: refs/heads/master@{#289061}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'athena/content')
-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 { |