OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/gtk/sync_setup_wizard_gtk.h" | 5 #include "chrome/browser/gtk/sync_setup_wizard_gtk.h" |
6 | 6 |
7 #include "chrome/browser/browser_list.h" | 7 #include "chrome/browser/browser_list.h" |
8 #include "chrome/browser/browser_window.h" | 8 #include "chrome/browser/browser_window.h" |
9 #include "chrome/browser/sync/profile_sync_service.h" | 9 #include "chrome/browser/sync/profile_sync_service.h" |
10 #include "chrome/browser/sync/sync_setup_wizard.h" | 10 #include "chrome/browser/sync/sync_setup_wizard.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 void SyncSetupWizard::Step(State advance_state) { | 23 void SyncSetupWizard::Step(State advance_state) { |
24 switch (advance_state) { | 24 switch (advance_state) { |
25 case GAIA_LOGIN: | 25 case GAIA_LOGIN: |
26 SyncSetupWizardGtk::Show(service_, this); | 26 SyncSetupWizardGtk::Show(service_, this); |
27 break; | 27 break; |
28 case GAIA_SUCCESS: | 28 case GAIA_SUCCESS: |
29 case MERGE_AND_SYNC: | 29 case MERGE_AND_SYNC: |
30 case FATAL_ERROR: | 30 case FATAL_ERROR: |
31 case DONE: | 31 case DONE: |
| 32 case DONE_FIRST_TIME: |
32 // TODO(zork): Implement | 33 // TODO(zork): Implement |
33 break; | 34 break; |
34 default: | 35 default: |
35 NOTREACHED(); | 36 NOTREACHED(); |
36 } | 37 } |
37 } | 38 } |
38 | 39 |
39 bool SyncSetupWizard::IsVisible() const { | 40 bool SyncSetupWizard::IsVisible() const { |
40 return visible_; | 41 return visible_; |
41 } | 42 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 gtk_entry_get_text(GTK_ENTRY(username_textbox_)), | 118 gtk_entry_get_text(GTK_ENTRY(username_textbox_)), |
118 gtk_entry_get_text(GTK_ENTRY(password_textbox_))); | 119 gtk_entry_get_text(GTK_ENTRY(password_textbox_))); |
119 | 120 |
120 service_->SetSyncSetupCompleted(); | 121 service_->SetSyncSetupCompleted(); |
121 } | 122 } |
122 service_->OnUserCancelledDialog(); | 123 service_->OnUserCancelledDialog(); |
123 | 124 |
124 delete this; | 125 delete this; |
125 gtk_widget_destroy(GTK_WIDGET(widget)); | 126 gtk_widget_destroy(GTK_WIDGET(widget)); |
126 } | 127 } |
OLD | NEW |