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

Unified Diff: chrome/browser/toolbar_model.cc

Issue 200009: Use system themes where possible in Omnibox, dropdown, and security info bubb... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
Index: chrome/browser/toolbar_model.cc
===================================================================
--- chrome/browser/toolbar_model.cc (revision 25340)
+++ chrome/browser/toolbar_model.cc (working copy)
@@ -106,14 +106,9 @@
}
}
-void ToolbarModel::GetIconHoverText(std::wstring* text, SkColor* text_color) {
- static const SkColor kOKHttpsInfoBubbleTextColor =
- SkColorSetRGB(0, 153, 51); // Green.
- static const SkColor kBrokenHttpsInfoBubbleTextColor =
- SkColorSetRGB(255, 0, 0); // Red.
+void ToolbarModel::GetIconHoverText(std::wstring* text) {
+ DCHECK(text);
- DCHECK(text && text_color);
-
NavigationController* navigation_controller = GetNavigationController();
// We don't expect to be called during initialization, so the controller
// should never be NULL.
@@ -130,12 +125,10 @@
SSLErrorInfo::CreateError(SSLErrorInfo::MIXED_CONTENTS,
NULL, GURL::EmptyGURL());
text->assign(error_info.short_description());
- *text_color = kBrokenHttpsInfoBubbleTextColor;
} else {
DCHECK(entry->url().has_host());
text->assign(l10n_util::GetStringF(IDS_SECURE_CONNECTION,
UTF8ToWide(entry->url().host())));
- *text_color = kOKHttpsInfoBubbleTextColor;
}
break;
}
@@ -147,7 +140,6 @@
NOTREACHED();
return;
}
- *text_color = kBrokenHttpsInfoBubbleTextColor;
break;
}
default:
« no previous file with comments | « chrome/browser/toolbar_model.h ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698