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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h

Issue 7610008: Sync Promo: Show profile avatar next to user name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build issues Created 9 years, 4 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/ui/webui/ntp/new_tab_sync_setup_handler.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h b/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
index 5c7c7e1d46ec5cd1e3ee563cc9a028b7d249405a..b997b911711ae53eaf9ae1c1536228adea481c2f 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
@@ -39,6 +39,9 @@ class NewTabSyncSetupHandler : public SyncSetupHandler {
// Javascript callback handler to expand the sync promo.
void HandleExpandSyncPromo(const ListValue* args);
+ // Javascript callback handler to show the profiles menu.
+ void HandleShowProfilesMenu(const ListValue* args);
+
private:
// Sends the sync login name to the page.
void UpdateLogin();
@@ -48,6 +51,9 @@ class NewTabSyncSetupHandler : public SyncSetupHandler {
// Preference for the sync login name.
StringPrefMember username_pref_;
+
+ // This is used to monitor the profile state.
+ NotificationRegistrar registrar_;
};
#endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
« no previous file with comments | « chrome/browser/resources/new_tab_sync_promo.js ('k') | chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698