diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 16:02:40 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 16:02:40 +0000 |
commit | e4925aa2cea0f4cc4ab8395bbde500d772e1a724 (patch) | |
tree | ce560009b81d4966191d6cc7b707c20ecff80b5e /chrome/browser/resources | |
parent | 65ed01e42abd1d73fd7eb520908bdff1b50c21fd (diff) | |
download | chromium_src-e4925aa2cea0f4cc4ab8395bbde500d772e1a724.zip chromium_src-e4925aa2cea0f4cc4ab8395bbde500d772e1a724.tar.gz chromium_src-e4925aa2cea0f4cc4ab8395bbde500d772e1a724.tar.bz2 |
Notify user that Chrome is already synced if promo banner "sync me" link is clicked.
BUG= 28795
TEST= sync bookmarks, then click "sync" link in promo again. see notification that you are already synced.
Review URL: http://codereview.chromium.org/462011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33685 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/new_new_tab.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js index 7b60721..728a8d4 100644 --- a/chrome/browser/resources/new_new_tab.js +++ b/chrome/browser/resources/new_new_tab.js @@ -689,6 +689,15 @@ function syncSectionLinkClicked(e) { } /** + * Invoked when link to start sync in the promo message is clicked, and Chrome + * has already been synced to an account. + */ +function syncAlreadyEnabled(message) { + showNotification(message.syncEnabledMessage, + localStrings.getString('close')); +} + +/** * Returns the text used for a recently closed window. * @param {number} numTabs Number of tabs in the window. * @return {string} The text to use. |