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

Unified Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.h

Issue 196783002: Export a private webstore API to call into the new inline sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tidy up Created 6 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/sync/one_click_signin_sync_starter.h
diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter.h b/chrome/browser/ui/sync/one_click_signin_sync_starter.h
index e89fad0c1adba3050fb1950d91dad9d8e3a97109..17e465286226aeee842be42c116c53f95508908f 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.h
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.h
@@ -78,6 +78,9 @@ class OneClickSigninSyncStarter : public SigninTracker::Observer,
// signin before signin completes.
// |web_contents| is used to show the sync UI if it's showing a blank page
// and not about to be closed. It can be NULL.
+ // If |web_contents| is non-NULL and the |continue_url| is non-empty, the
+ // |web_contents| will be navigated to the |continue_url| once both signin and
+ // Sync setup are complete.
// |callback| is always executed before OneClickSigninSyncStarter is deleted.
// It can be empty.
OneClickSigninSyncStarter(Profile* profile,
@@ -88,6 +91,7 @@ class OneClickSigninSyncStarter : public SigninTracker::Observer,
StartSyncMode start_mode,
content::WebContents* web_contents,
ConfirmationRequired display_confirmation,
+ const GURL& continue_url,
Callback callback);
// chrome::BrowserListObserver override.
@@ -209,6 +213,7 @@ class OneClickSigninSyncStarter : public SigninTracker::Observer,
chrome::HostDesktopType desktop_type_;
bool force_same_tab_navigation_;
ConfirmationRequired confirmation_required_;
+ GURL continue_url_;
// Callback executed when sync setup succeeds or fails.
Callback sync_setup_completed_callback_;

Powered by Google App Engine
This is Rietveld 408576698