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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.h

Issue 10806048: Change the navigation code of sync promo slightly to navigate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/sync_promo/sync_promo_ui.h
===================================================================
--- chrome/browser/ui/webui/sync_promo/sync_promo_ui.h (revision 147566)
+++ chrome/browser/ui/webui/sync_promo/sync_promo_ui.h (working copy)
@@ -52,7 +52,9 @@
// promo. If an empty URL is given then the promo will navigate to the NTP.
// |source| identifies from where the sync promo is being called, and is used
// to record sync promo UMA stats in the context of the source.
- static GURL GetSyncPromoURL(const GURL& next_page, Source source);
+ // |auto_close| whether to close the sync promo automatically when done.
+ static GURL GetSyncPromoURL(
+ const GURL& next_page, Source source, bool auto_close);
// Gets the next page URL from the query portion of the sync promo URL.
static GURL GetNextPageURLForSyncPromoURL(const GURL& url);
@@ -61,6 +63,9 @@
// The source identifies from where the sync promo was opened.
static Source GetSourceForSyncPromoURL(const GURL& url);
+ // Returns whether the given sync URL contains auto_close parameter.
+ static bool GetAutoCloseForSyncPromoURL(const GURL& url);
+
private:
DISALLOW_COPY_AND_ASSIGN(SyncPromoUI);
};
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698