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

Unified Diff: chrome/browser/toolbar_model.cc

Issue 193026: Merge 25494 - Use system themes where possible in Omnibox edit and dropdown; ... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/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 25504)
+++ 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:
Property changes on: chrome\browser\toolbar_model.cc
___________________________________________________________________
Added: svn:mergeinfo
Merged /trunk/src/chrome/browser/toolbar_model.cc:r25494
Merged /branches/chrome_webkit_merge_branch/chrome/browser/toolbar_model.cc:r69-2775

Powered by Google App Engine
This is Rietveld 408576698