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

Unified Diff: athena/content/web_activity.cc

Issue 456243002: athena: Show the hostname in the caption instead of the page-title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/web_activity.cc
diff --git a/athena/content/web_activity.cc b/athena/content/web_activity.cc
index da1cfd55f9b777db3b372e14fa3f245214179891..f3046941de1c12b95f899393e4730590c3a96e6c 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698