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

Unified Diff: athena/content/web_activity.cc

Issue 433083003: athena: Set a default background for the window title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 | « athena/activity/activity_frame_view.cc ('k') | 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 8ec8b530ca89ed197f838604ab55b912304207b9..0a5e0b5a1140ed5f33bfa0d77328fd9146cecbda 100644
--- a/athena/content/web_activity.cc
+++ b/athena/content/web_activity.cc
@@ -349,11 +349,11 @@ void WebActivity::Init() {
SkColor WebActivity::GetRepresentativeColor() const {
// TODO(sad): Compute the color from the favicon.
- return SK_ColorGRAY;
+ return web_view_ ? SK_ColorGRAY : SkColorSetRGB(0xbb, 0x77, 0x77);
}
base::string16 WebActivity::GetTitle() const {
- return web_view_->GetWebContents()->GetTitle();
+ return web_view_ ? web_view_->GetWebContents()->GetTitle() : base::string16();
}
bool WebActivity::UsesFrame() const {
« no previous file with comments | « athena/activity/activity_frame_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698