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

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

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/sync/profile_sync_service.h
===================================================================
--- chrome/browser/sync/profile_sync_service.h (revision 29327)
+++ chrome/browser/sync/profile_sync_service.h (working copy)
@@ -63,7 +63,8 @@
// and the sync backend.
class ProfileSyncService : public NotificationObserver,
public browser_sync::SyncFrontend,
- public browser_sync::UnrecoverableErrorHandler {
+ public browser_sync::UnrecoverableErrorHandler,
+ public SyncSetupWizard::WizardParentDelegate {
public:
typedef ProfileSyncServiceObserver Observer;
typedef browser_sync::SyncBackendHost::Status Status;
@@ -100,7 +101,7 @@
void Initialize();
// Enables/disables sync for user.
- virtual void EnableForUser();
+ virtual void EnableForUser(gfx::NativeWindow parent_window);
tim (not reviewing) 2009/10/29 21:58:44 can we call it setup_dialog_parent_window, and add
virtual void DisableForUser();
// Whether sync is enabled by user or not.
@@ -147,7 +148,10 @@
bool WizardIsVisible() const {
return wizard_.IsVisible();
}
- void ShowLoginDialog();
+ gfx::NativeWindow GetWizardParent() const {
tim (not reviewing) 2009/10/29 21:58:44 please add virtual
+ return wizard_parent_window_;
+ }
+ void ShowLoginDialog(gfx::NativeWindow parent_window);
tim (not reviewing) 2009/10/29 21:58:44 the name of the variable is fine here, but please
// Pretty-printed strings for a given StatusSummary.
static std::wstring BuildSyncStatusSummaryText(
@@ -301,6 +305,7 @@
bool is_auth_in_progress_;
SyncSetupWizard wizard_;
+ gfx::NativeWindow wizard_parent_window_;
// True if an unrecoverable error (e.g. violation of an assumed invariant)
// occurred during syncer operation. This value should be checked before

Powered by Google App Engine
This is Rietveld 408576698