Index: chrome/browser/ui/sync/one_click_signin_helper.h |
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.h b/chrome/browser/ui/sync/one_click_signin_helper.h |
index 2c0b09dcdc71b4b3c5aa04d3fa900a3a23dfd1c5..8ae4440068d9189aa45f26fc75b428e11d2e4eb3 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.h |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h |
@@ -120,6 +120,13 @@ class OneClickSigninHelper |
int child_id, |
int route_id); |
+ // If the |source| is not settings page/webstore, redirects to |
+ // the NTP/Apps page. |
+ static void RedirectToNtpOrAppsPageIfNecessary( |
+ content::WebContents* contents, signin::Source source); |
+ |
+ static void ShowSigninErrorBubble(Browser* browser, const std::string& error); |
+ |
// Remove the item currently at the top of the history list if it's |
// the Gaia redirect URL. Due to limitations of the NavigationController |
// this cannot be done until a new page becomes "current". |
@@ -208,7 +215,6 @@ class OneClickSigninHelper |
int route_id); |
void RedirectToSignin(); |
- void ShowSigninErrorBubble(Browser* browser, const std::string& error); |
// Clear all data member of the helper, except for the error. |
void CleanTransientState(); |