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

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

Issue 9838064: Add a sign-in promo message to the Other Devices menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, and only enable menu when tab sync is enabled. Created 8 years, 9 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/foreign_session_handler.h
diff --git a/chrome/browser/ui/webui/ntp/foreign_session_handler.h b/chrome/browser/ui/webui/ntp/foreign_session_handler.h
index 4f823166882c5b656fd8b5454e1e12eaae4b1633..0d8c1a33d14c677e928610d7a10db63afa849f1a 100644
--- a/chrome/browser/ui/webui/ntp/foreign_session_handler.h
+++ b/chrome/browser/ui/webui/ntp/foreign_session_handler.h
@@ -37,6 +37,9 @@ class ForeignSessionHandler : public content::WebUIMessageHandler,
// Returns a pointer to the current session model associator or NULL.
SessionModelAssociator* GetModelAssociator();
+ // Returns true if tab sync is enabled for this profile, otherwise false.
+ bool IsTabSyncEnabled();
+
// Determines which session is to be opened, and then calls
// OpenForeignSession, to begin the process of opening a new browser window.
// This is a javascript callback handler.

Powered by Google App Engine
This is Rietveld 408576698