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

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

Issue 279004: Made sync code build and pass unit tests on OS X. (Closed)
Patch Set: Fixed uninitialized var error. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_SYNC_SYNC_SETUP_WIZARD_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
6 #define CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_WIZARD_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_LINUX)
11 class SyncSetupFlowContainer;
12 #elif defined(OS_LINUX)
13 typedef struct _GtkWidget GtkWidget; 11 typedef struct _GtkWidget GtkWidget;
14 typedef struct _GtkWindow GtkWindow; 12 typedef struct _GtkWindow GtkWindow;
13 #else
14 class SyncSetupFlowContainer;
15 #endif 15 #endif
16 16
17 class ProfileSyncService; 17 class ProfileSyncService;
18 18
19 class SyncSetupWizard { 19 class SyncSetupWizard {
20 public: 20 public:
21 enum State { 21 enum State {
22 // Show the Google Account login UI. 22 // Show the Google Account login UI.
23 GAIA_LOGIN = 0, 23 GAIA_LOGIN = 0,
24 // A login attempt succeeded. Depending on initial conditions, this may 24 // A login attempt succeeded. Depending on initial conditions, this may
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // gaia credentials in the event of a steady-state auth failure, this is 62 // gaia credentials in the event of a steady-state auth failure, this is
63 // a "discrete" run (as in not a continuous wizard flow). This returns 63 // a "discrete" run (as in not a continuous wizard flow). This returns
64 // the end state to pass to Run for a given |start_state|. 64 // the end state to pass to Run for a given |start_state|.
65 static State GetEndStateForDiscreteRun(State start_state); 65 static State GetEndStateForDiscreteRun(State start_state);
66 66
67 // Helper to return whether |state| warrants starting a new flow. 67 // Helper to return whether |state| warrants starting a new flow.
68 static bool IsTerminalState(State state); 68 static bool IsTerminalState(State state);
69 69
70 ProfileSyncService* service_; 70 ProfileSyncService* service_;
71 71
72 #if defined(OS_WIN) 72 #if defined(OS_LINUX)
73 bool visible_;
74 #else
73 SyncSetupFlowContainer* flow_container_; 75 SyncSetupFlowContainer* flow_container_;
74 #elif defined(OS_LINUX)
75 bool visible_;
76 #endif 76 #endif
77 77
78 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); 78 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_WIZARD_H_ 81 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
82
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698