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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 G_CALLBACK(HandleOnResponseDialog), this); | 109 G_CALLBACK(HandleOnResponseDialog), this); |
110 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); | 110 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
111 gtk_widget_show_all(dialog); | 111 gtk_widget_show_all(dialog); |
112 } | 112 } |
113 | 113 |
114 void SyncSetupWizardGtk::OnDialogResponse(GtkWidget* widget, int response) { | 114 void SyncSetupWizardGtk::OnDialogResponse(GtkWidget* widget, int response) { |
115 wizard_->set_visible(false); | 115 wizard_->set_visible(false); |
116 if (response == GTK_RESPONSE_ACCEPT) { | 116 if (response == GTK_RESPONSE_ACCEPT) { |
117 service_->OnUserSubmittedAuth( | 117 service_->OnUserSubmittedAuth( |
118 gtk_entry_get_text(GTK_ENTRY(username_textbox_)), | 118 gtk_entry_get_text(GTK_ENTRY(username_textbox_)), |
119 gtk_entry_get_text(GTK_ENTRY(password_textbox_))); | 119 gtk_entry_get_text(GTK_ENTRY(password_textbox_)), |
| 120 std::string()); |
120 | 121 |
121 service_->SetSyncSetupCompleted(); | 122 service_->SetSyncSetupCompleted(); |
122 } | 123 } |
123 service_->OnUserCancelledDialog(); | 124 service_->OnUserCancelledDialog(); |
124 | 125 |
125 delete this; | 126 delete this; |
126 gtk_widget_destroy(GTK_WIDGET(widget)); | 127 gtk_widget_destroy(GTK_WIDGET(widget)); |
127 } | 128 } |
OLD | NEW |