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

Side by Side Diff: chrome/browser/ui/webui/sync_setup_handler.h

Issue 9956097: suppress user/password dialog when re-enabling sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/signin/signin_tracker.h" 10 #include "chrome/browser/signin/signin_tracker.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // error UI. 114 // error UI.
115 void DisplayGaiaLogin(bool fatal_error); 115 void DisplayGaiaLogin(bool fatal_error);
116 116
117 // Displays the GAIA login form with a custom error message (used for errors 117 // Displays the GAIA login form with a custom error message (used for errors
118 // like "email address already in use by another profile"). No message 118 // like "email address already in use by another profile"). No message
119 // displayed if |error_message| is empty. Displays fatal error UI if 119 // displayed if |error_message| is empty. Displays fatal error UI if
120 // |fatal_error| = true. 120 // |fatal_error| = true.
121 void DisplayGaiaLoginWithErrorMessage(const string16& error_message, 121 void DisplayGaiaLoginWithErrorMessage(const string16& error_message,
122 bool fatal_error); 122 bool fatal_error);
123 123
124 // Displays spinner-only UI indicating that something is going on in the
125 // background.
126 // TODO(kochi): better to show some message that the user can understand what
127 // is running in the background.
Andrew T Wilson (Slow) 2012/04/03 17:45:13 Note: http://code.google.com/p/chromium/issues/det
kochi 2012/04/03 21:55:29 Done.
128 void DisplaySpinner();
129
124 // Returns true if we're the active login object. 130 // Returns true if we're the active login object.
125 bool IsActiveLogin() const; 131 bool IsActiveLogin() const;
126 132
127 // Initiates a login via the signin manager. 133 // Initiates a login via the signin manager.
128 void TryLogin(const std::string& username, 134 void TryLogin(const std::string& username,
129 const std::string& password, 135 const std::string& password,
130 const std::string& captcha, 136 const std::string& captcha,
131 const std::string& access_code); 137 const std::string& access_code);
132 138
133 // If a wizard already exists, focus it and return true. 139 // If a wizard already exists, focus it and return true.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Cache of the last name the client attempted to authenticate. 171 // Cache of the last name the client attempted to authenticate.
166 std::string last_attempted_user_email_; 172 std::string last_attempted_user_email_;
167 173
168 // The error from the last signin attempt. 174 // The error from the last signin attempt.
169 GoogleServiceAuthError last_signin_error_; 175 GoogleServiceAuthError last_signin_error_;
170 176
171 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); 177 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler);
172 }; 178 };
173 179
174 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 180 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698