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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 12088037: Revert 179302 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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_helper.cc
===================================================================
--- chrome/browser/ui/sync/one_click_signin_helper.cc (revision 179305)
+++ chrome/browser/ui/sync/one_click_signin_helper.cc (working copy)
@@ -83,16 +83,15 @@
}
// Start syncing with the given user information.
-void StartSync(Profile* profile,
- Browser* browser,
+void StartSync(Browser* browser,
OneClickSigninHelper::AutoAccept auto_accept,
const std::string& session_index,
const std::string& email,
const std::string& password,
OneClickSigninSyncStarter::StartSyncMode start_mode) {
// The starter deletes itself once its done.
- new OneClickSigninSyncStarter(profile, browser, session_index, email,
- password, start_mode);
+ new OneClickSigninSyncStarter(browser, session_index, email, password,
+ start_mode);
int action = one_click_signin::HISTOGRAM_MAX;
switch (auto_accept) {
@@ -310,7 +309,7 @@
chrome::FindBrowserWithWebContents(web_contents)->window()->
ShowOneClickSigninBubble(
BrowserWindow::ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
- base::Bind(&StartSync, profile, browser,
+ base::Bind(&StartSync, browser,
OneClickSigninHelper::AUTO_ACCEPT_NONE, session_index_,
email_, password_));
button_pressed_ = true;
@@ -866,17 +865,17 @@
SigninManager::DisableOneClickSignIn(profile);
browser->window()->ShowOneClickSigninBubble(
BrowserWindow::ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG,
- base::Bind(&StartSync, profile, browser, auto_accept_, session_index_,
+ base::Bind(&StartSync, browser, auto_accept_, session_index_,
email_, password_));
break;
case AUTO_ACCEPT_CONFIGURE:
SigninManager::DisableOneClickSignIn(profile);
- StartSync(profile, browser, auto_accept_, session_index_, email_,
- password_, OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST);
+ StartSync(browser, auto_accept_, session_index_, email_, password_,
+ OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST);
break;
case AUTO_ACCEPT_EXPLICIT:
- StartSync(profile, browser, auto_accept_, session_index_, email_,
- password_, source_ == SyncPromoUI::SOURCE_SETTINGS ?
+ StartSync(browser, auto_accept_, session_index_, email_, password_,
+ source_ == SyncPromoUI::SOURCE_SETTINGS ?
OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST :
OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS);
« no previous file with comments | « chrome/browser/ui/app_list/chrome_signin_delegate.cc ('k') | chrome/browser/ui/sync/one_click_signin_sync_starter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698