| Index: chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
|
| diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
|
| deleted file mode 100644
|
| index ae6703129cccd8452d48849f641e04f7a04bb7e1..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
|
| +++ /dev/null
|
| @@ -1,87 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_
|
| -#define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/basictypes.h"
|
| -
|
| -class GURL;
|
| -class Profile;
|
| -
|
| -namespace user_prefs {
|
| -class PrefRegistrySyncable;
|
| -}
|
| -
|
| -// Static helper functions useful for chrome sign in.
|
| -class SyncPromoUI {
|
| - public:
|
| - // Please keep this in sync with enums in sync_promo_trial.cc.
|
| - enum Source {
|
| - SOURCE_START_PAGE = 0, // This must be first.
|
| - SOURCE_NTP_LINK,
|
| - SOURCE_MENU,
|
| - SOURCE_SETTINGS,
|
| - SOURCE_EXTENSION_INSTALL_BUBBLE,
|
| - SOURCE_WEBSTORE_INSTALL,
|
| - SOURCE_APP_LAUNCHER,
|
| - SOURCE_APPS_PAGE_LINK,
|
| - SOURCE_UNKNOWN, // This must be last.
|
| - };
|
| -
|
| - // Returns true if the sync promo should be visible.
|
| - // |profile| is the profile of the tab the promo would be shown on.
|
| - static bool ShouldShowSyncPromo(Profile* profile);
|
| -
|
| - // Returns true if we should show the sync promo at startup.
|
| - static bool ShouldShowSyncPromoAtStartup(Profile* profile,
|
| - bool is_new_profile);
|
| -
|
| - // Called when the sync promo has been shown so that we can keep track
|
| - // of the number of times we've displayed it.
|
| - static void DidShowSyncPromoAtStartup(Profile* profile);
|
| -
|
| - // Returns true if a user has seen the sync promo at startup previously.
|
| - static bool HasShownPromoAtStartup(Profile* profile);
|
| -
|
| - // Returns true if the user has previously skipped the sync promo.
|
| - static bool HasUserSkippedSyncPromo(Profile* profile);
|
| -
|
| - // Registers the fact that the user has skipped the sync promo.
|
| - static void SetUserSkippedSyncPromo(Profile* profile);
|
| -
|
| - // Registers the preferences the Sync Promo UI needs.
|
| - static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
|
| -
|
| - // Gets the sync landing page URL.
|
| - static std::string GetSyncLandingURL(const char* option, int value);
|
| -
|
| - // Returns the sync promo URL wth the given arguments in the query.
|
| - // |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.
|
| - // |auto_close| whether to close the sync promo automatically when done.
|
| - static GURL GetSyncPromoURL(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);
|
| -
|
| - // Gets the source from the query portion of the sync promo URL.
|
| - // The source identifies from where the sync promo was opened.
|
| - static Source GetSourceForSyncPromoURL(const GURL& url);
|
| -
|
| - // Returns true if the given URL is the standard continue URL used with the
|
| - // sync promo when the web-based flow is enabled. The query parameters
|
| - // of the URL are ignored for this comparison.
|
| - static bool IsContinueUrlForWebBasedSigninFlow(const GURL& url);
|
| -
|
| - // Forces UseWebBasedSigninFlow() to return true when set; used in tests only.
|
| - static void ForceWebBasedSigninFlowForTesting(bool force);
|
| -
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(SyncPromoUI);
|
| -};
|
| -
|
| -#endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_
|
|
|