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

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

Issue 7477021: Pass Setup Chrome Sync to main profile from Incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 9469c4b6dbd88261eb89e1e8b039fe23fa6a685b..3b7cb6882724707e88f2d89d6cb19bc547b096ce 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -4792,9 +4792,10 @@ void Browser::UpdateBookmarkBarState(BookmarkBarStateChangeReason reason) {
}
void Browser::ShowSyncSetup() {
- ProfileSyncService* service = profile()->GetProfileSyncService();
+ ProfileSyncService* service =
+ profile()->GetOriginalProfile()->GetProfileSyncService();
if (service->HasSyncSetupCompleted())
ShowOptionsTab(chrome::kSyncSetupSubPage);
else
- profile()->GetProfileSyncService()->ShowLoginDialog();
+ service->ShowLoginDialog();
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698