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

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

Issue 10692021: Remove browser::FindLastActiveWithProfile call in login_ui_service.cc by plumbing the Browser* thro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 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);
}

Powered by Google App Engine
This is Rietveld 408576698