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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 2847072: Green Tree Tactical Force: Revert skrul's bad commits (probably a git-cl bug). (Closed)
Patch Set: Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const GoogleServiceAuthError& GetAuthError() const { 168 const GoogleServiceAuthError& GetAuthError() const {
169 return last_auth_error_; 169 return last_auth_error_;
170 } 170 }
171 171
172 // Displays a dialog for the user to enter GAIA credentials and attempt 172 // Displays a dialog for the user to enter GAIA credentials and attempt
173 // re-authentication, and returns true if it actually opened the dialog. 173 // re-authentication, and returns true if it actually opened the dialog.
174 // Returns false if a dialog is already showing, an auth attempt is in 174 // Returns false if a dialog is already showing, an auth attempt is in
175 // progress, the sync system is already authenticated, or some error 175 // progress, the sync system is already authenticated, or some error
176 // occurred preventing the action. We make it the duty of ProfileSyncService 176 // occurred preventing the action. We make it the duty of ProfileSyncService
177 // to open the dialog to easily ensure only one is ever showing. 177 // to open the dialog to easily ensure only one is ever showing.
178 bool SetupInProgress() const; 178 bool SetupInProgress() const {
179 return !HasSyncSetupCompleted() &&
180 (WizardIsVisible() || bootstrap_sync_authentication_);
181 }
179 bool WizardIsVisible() const { 182 bool WizardIsVisible() const {
180 return wizard_.IsVisible(); 183 return wizard_.IsVisible();
181 } 184 }
182 void ShowLoginDialog(gfx::NativeWindow parent_window); 185 void ShowLoginDialog(gfx::NativeWindow parent_window);
183 186
184 void ShowChooseDataTypes(gfx::NativeWindow parent_window); 187 void ShowChooseDataTypes(gfx::NativeWindow parent_window);
185 188
186 // Pretty-printed strings for a given StatusSummary. 189 // Pretty-printed strings for a given StatusSummary.
187 static std::wstring BuildSyncStatusSummaryText( 190 static std::wstring BuildSyncStatusSummaryText(
188 const browser_sync::SyncBackendHost::StatusSummary& summary); 191 const browser_sync::SyncBackendHost::StatusSummary& summary);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 443
441 // This allows us to gracefully handle an ABORTED return code from the 444 // This allows us to gracefully handle an ABORTED return code from the
442 // DataTypeManager in the event that the server informed us to cease and 445 // DataTypeManager in the event that the server informed us to cease and
443 // desist syncing immediately. 446 // desist syncing immediately.
444 bool expect_sync_configuration_aborted_; 447 bool expect_sync_configuration_aborted_;
445 448
446 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 449 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
447 }; 450 };
448 451
449 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 452 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/content_page_gtk.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698