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

Side by Side Diff: chrome/browser/gtk/sync_setup_wizard_gtk.cc

Issue 389017: Implement the gaia captcha state and unlock capability in the sync setup wiza... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/resources/locale_settings.grd ('k') | chrome/browser/sync/engine/auth_watcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/app/resources/locale_settings.grd ('k') | chrome/browser/sync/engine/auth_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698