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

Side by Side Diff: chrome/browser/signin/signin_promo.h

Issue 579033002: [Clean-up] Remove some dead code for handling Webstore sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore incorrectly deleted code Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.cc ('k') | chrome/browser/signin/signin_promo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 const char kSignInPromoQueryKeyConstrained[] = "constrained"; 25 const char kSignInPromoQueryKeyConstrained[] = "constrained";
26 const char kSignInPromoQueryKeyShowAccountManagement[] = 26 const char kSignInPromoQueryKeyShowAccountManagement[] =
27 "showAccountManagement"; 27 "showAccountManagement";
28 28
29 enum Source { 29 enum Source {
30 SOURCE_START_PAGE = 0, // This must be first. 30 SOURCE_START_PAGE = 0, // This must be first.
31 SOURCE_NTP_LINK, 31 SOURCE_NTP_LINK,
32 SOURCE_MENU, 32 SOURCE_MENU,
33 SOURCE_SETTINGS, 33 SOURCE_SETTINGS,
34 SOURCE_EXTENSION_INSTALL_BUBBLE, 34 SOURCE_EXTENSION_INSTALL_BUBBLE,
35 SOURCE_WEBSTORE_INSTALL,
36 SOURCE_APP_LAUNCHER, 35 SOURCE_APP_LAUNCHER,
37 SOURCE_APPS_PAGE_LINK, 36 SOURCE_APPS_PAGE_LINK,
38 SOURCE_BOOKMARK_BUBBLE, 37 SOURCE_BOOKMARK_BUBBLE,
39 SOURCE_AVATAR_BUBBLE_SIGN_IN, 38 SOURCE_AVATAR_BUBBLE_SIGN_IN,
40 SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, 39 SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT,
41 SOURCE_DEVICES_PAGE, 40 SOURCE_DEVICES_PAGE,
42 SOURCE_REAUTH, 41 SOURCE_REAUTH,
43 SOURCE_UNKNOWN, // This must be last. 42 SOURCE_UNKNOWN, // This must be last.
44 }; 43 };
45 44
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 // Returns the sign in promo URL wth the given arguments in the query. 82 // Returns the sign in promo URL wth the given arguments in the query.
84 // |source| identifies from where the sign in promo is being called, and is 83 // |source| identifies from where the sign in promo is being called, and is
85 // used to record sync promo UMA stats in the context of the source. 84 // used to record sync promo UMA stats in the context of the source.
86 // |auto_close| whether to close the sign in promo automatically when done. 85 // |auto_close| whether to close the sign in promo automatically when done.
87 // |is_constrained} whether to load the URL in a constrained window, false 86 // |is_constrained} whether to load the URL in a constrained window, false
88 // by default. 87 // by default.
89 GURL GetPromoURL(Source source, bool auto_close); 88 GURL GetPromoURL(Source source, bool auto_close);
90 GURL GetPromoURL(Source source, bool auto_close, bool is_constrained); 89 GURL GetPromoURL(Source source, bool auto_close, bool is_constrained);
91 90
92 // As above, but also appends the |continue_url| as a parameter to the URL.
93 // A |continue_url| may be set only when not using the web-based sign-in flow.
94 GURL GetPromoURLWithContinueURL(Source source,
95 bool auto_close,
96 bool is_constrained,
97 GURL continue_url);
98
99 // Returns a sign in promo URL specifically for reauthenticating |account_id|. 91 // Returns a sign in promo URL specifically for reauthenticating |account_id|.
100 GURL GetReauthURL(Profile* profile, const std::string& account_id); 92 GURL GetReauthURL(Profile* profile, const std::string& account_id);
101 93
102 // Gets the next page URL from the query portion of the sign in promo URL. 94 // Gets the next page URL from the query portion of the sign in promo URL.
103 GURL GetNextPageURLForPromoURL(const GURL& url); 95 GURL GetNextPageURLForPromoURL(const GURL& url);
104 96
105 // Gets the source from the query portion of the sign in promo URL. 97 // Gets the source from the query portion of the sign in promo URL.
106 // The source identifies from where the sign in promo was opened. 98 // The source identifies from where the sign in promo was opened.
107 Source GetSourceForPromoURL(const GURL& url); 99 Source GetSourceForPromoURL(const GURL& url);
108 100
(...skipping 11 matching lines...) Expand all
120 112
121 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. 113 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only.
122 void ForceWebBasedSigninFlowForTesting(bool force); 114 void ForceWebBasedSigninFlowForTesting(bool force);
123 115
124 // Registers the preferences the Sign In Promo needs. 116 // Registers the preferences the Sign In Promo needs.
125 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 117 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
126 118
127 } // namespace signin 119 } // namespace signin
128 120
129 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 121 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.cc ('k') | chrome/browser/signin/signin_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698