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

Unified Diff: chrome/browser/dom_ui/dom_ui_theme_source.cc

Issue 394005: Add message and image to NTP to promote extensions and bookmark sync.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/dom_ui/dom_ui_theme_source.cc
===================================================================
--- chrome/browser/dom_ui/dom_ui_theme_source.cc (revision 32026)
+++ chrome/browser/dom_ui/dom_ui_theme_source.cc (working copy)
@@ -184,10 +184,13 @@
subst2.push_back(SkColorToRGBAString(color_link_underline)); // $$6
subst2.push_back(SkColorToRGBAString(color_section_link_underline)); // $$7
- if (profile->GetPrefs()->GetInteger(prefs::kNTPThemePromoRemaining) > 0)
+ if (profile->GetPrefs()->GetInteger(prefs::kNTPPromoRemaining) > 0) {
subst2.push_back("block"); // $$8
- else
+ subst2.push_back("inline-block"); // $$9
+ } else {
subst2.push_back("none"); // $$8
+ subst2.push_back("none"); // $$9
+ }
// Get our template.
static const base::StringPiece new_tab_theme_css(

Powered by Google App Engine
This is Rietveld 408576698