| 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);
|
| };
|
|
|