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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 462011: Notify user that Chrome is already synced if promo banner "sync me" link is c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 33650)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -689,6 +689,15 @@
}
/**
+ * 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.
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698