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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 9456031: Remove PSS::ShowLoginDialog() and obsolete IDC_SYNC_BOOKMARKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index b476aab7dfc7fb26e0fa12c8a9b8a88a6bb855fa..e9666e7aea15aa04904beb2992b2311cf7004ab7 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -973,12 +973,6 @@ void ProfileSyncService::OnActionableError(const SyncProtocolError& error) {
NotifyObservers();
}
-void ProfileSyncService::ShowLoginDialog() {
- // TODO(atwilson): Remove this API and have the callers directly call
- // LoginUIService.
- LoginUIServiceFactory::GetForProfile(profile_)->ShowLoginUI();
-}
-
void ProfileSyncService::ShowErrorUI() {
if (WizardIsVisible()) {
wizard_.Focus();
@@ -992,7 +986,7 @@ void ProfileSyncService::ShowErrorUI() {
// Any other errors (such as unrecoverable error) should be handled by the UI
// itself and should not result in a call to ShowErrorUI.
if (last_auth_error_.state() != AuthError::NONE) {
- ShowLoginDialog();
+ LoginUIServiceFactory::GetForProfile(profile_)->ShowLoginUI();
} else if (ShouldShowActionOnUI(last_actionable_error_)) {
ShowSyncSetup(chrome::kPersonalOptionsSubPage);
} else {

Powered by Google App Engine
This is Rietveld 408576698