| Index: chrome/browser/ui/sync/one_click_signin_helper.cc
|
| ===================================================================
|
| --- chrome/browser/ui/sync/one_click_signin_helper.cc (revision 144404)
|
| +++ chrome/browser/ui/sync/one_click_signin_helper.cc (working copy)
|
| @@ -137,9 +137,8 @@
|
| const std::string& password,
|
| OneClickSigninSyncStarter::StartSyncMode start_mode) {
|
| // The starter deletes itself once its done.
|
| - Profile* profile =
|
| - Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
| - new OneClickSigninSyncStarter(profile, session_index, email, password,
|
| + Browser* browser = browser::FindBrowserWithWebContents(web_contents);
|
| + new OneClickSigninSyncStarter(browser, session_index, email, password,
|
| start_mode);
|
| }
|
|
|
|
|