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

Unified Diff: chrome/browser/dom_ui/new_tab_page_sync_handler.cc

Issue 276072: The login dialog was being opened with the main browser window as a parent in... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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/dom_ui/new_tab_page_sync_handler.cc
===================================================================
--- chrome/browser/dom_ui/new_tab_page_sync_handler.cc (revision 29327)
+++ chrome/browser/dom_ui/new_tab_page_sync_handler.cc (working copy)
@@ -157,11 +157,11 @@
DCHECK(sync_service_);
if (sync_service_->HasSyncSetupCompleted()) {
// User clicked the 'Login again' link to re-authenticate.
- sync_service_->ShowLoginDialog();
+ sync_service_->ShowLoginDialog(NULL);
} else {
// User clicked the 'Start now' link to begin syncing.
ProfileSyncService::SyncEvent(ProfileSyncService::START_FROM_NTP);
- sync_service_->EnableForUser();
+ sync_service_->EnableForUser(NULL);
}
}

Powered by Google App Engine
This is Rietveld 408576698