diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 16:55:15 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 16:55:15 +0000 |
commit | cf4e8bf9d049611d5fdb349cb669042cc94af23c (patch) | |
tree | 7bf1df56015ff8948a78407bfa4d207afecc3ad4 /chrome/browser/dom_ui/tips_handler.h | |
parent | 717b292296c56cd83a438d32ab24859b2d8999a5 (diff) | |
download | chromium_src-cf4e8bf9d049611d5fdb349cb669042cc94af23c.zip chromium_src-cf4e8bf9d049611d5fdb349cb669042cc94af23c.tar.gz chromium_src-cf4e8bf9d049611d5fdb349cb669042cc94af23c.tar.bz2 |
Remove null link from "welcome to tips" default suggestion. Also make some hard-coded strings in new tab page into localizable .grd strings, and fix bug introduced in r19556.
BUG= http://crbug.com/15467
TEST= Run with new new tab page for the first time, with no tips stored in preferences. Note that welcome tip is not a link.
Review URL: http://codereview.chromium.org/147247
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/tips_handler.h')
-rw-r--r-- | chrome/browser/dom_ui/tips_handler.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/tips_handler.h b/chrome/browser/dom_ui/tips_handler.h index b6d5ccc..e5afe38 100644 --- a/chrome/browser/dom_ui/tips_handler.h +++ b/chrome/browser/dom_ui/tips_handler.h @@ -31,8 +31,8 @@ class TipsHandler : public DOMMessageHandler { TipsHandler() : tips_cache_(NULL) {} virtual ~TipsHandler() {} - // DOMMessageHandler implementation and overrides. - virtual DOMMessageHandler* Attach(DOMUI* dom_ui); + // DOMMessageHandler implementation and overrides. + virtual DOMMessageHandler* Attach(DOMUI* dom_ui); virtual void RegisterMessages(); // Callback which pulls tips data from the preferences. @@ -45,6 +45,9 @@ class TipsHandler : public DOMMessageHandler { // Make sure the string we are pushing to the NTP is a valid URL. bool IsValidURL(const std::wstring& url_string); + // So we can push data out to the page that has called this handler. + DOMUI* dom_ui_; + // Filled with data from cache in preferences. const DictionaryValue* tips_cache_; |