diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 22:57:46 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 22:57:46 +0000 |
commit | 712257e6ca930697de2a5c1d5e0a4311262e5a2c (patch) | |
tree | 0da9814073776ad59689620f2b21716ec8d28e7f /chrome/browser/sync/sync_setup_flow.cc | |
parent | 4efb56d87a1927f4e497257805b54ad3bda87bec (diff) | |
download | chromium_src-712257e6ca930697de2a5c1d5e0a4311262e5a2c.zip chromium_src-712257e6ca930697de2a5c1d5e0a4311262e5a2c.tar.gz chromium_src-712257e6ca930697de2a5c1d5e0a4311262e5a2c.tar.bz2 |
Part 1 of implementing captcha for sync dialog.
Added GoogleServiceAuthError, which is the same as the incumbent AuthErrorState but can support captcha information too. I moved it because it just had nothing specific to sync about it. This CL is mostly a rename and basic plumbing CaptchaRequired error state from browser_sync::AuthWatcher through to UI thread.
Ben, I added a .h to chrome/browser/ alongside other google_* stuff. I'm just looking for your blessing here, or suggestion of alternate location.
BUG=19738
Review URL: http://codereview.chromium.org/384040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/sync_setup_flow.cc')
-rw-r--r-- | chrome/browser/sync/sync_setup_flow.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/sync/sync_setup_flow.cc b/chrome/browser/sync/sync_setup_flow.cc index cf60350..50a8c2c 100644 --- a/chrome/browser/sync/sync_setup_flow.cc +++ b/chrome/browser/sync/sync_setup_flow.cc @@ -14,8 +14,8 @@ #include "base/values.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_list.h" +#include "chrome/browser/google_service_auth_error.h" #include "chrome/browser/renderer_host/render_view_host.h" -#include "chrome/browser/sync/auth_error_state.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/pref_names.h" @@ -214,14 +214,14 @@ void SyncSetupFlow::OnDialogClosed(const std::string& json_retval) { // static void SyncSetupFlow::GetArgsForGaiaLogin(const ProfileSyncService* service, DictionaryValue* args) { - AuthErrorState error(service->GetAuthErrorState()); + const GoogleServiceAuthError& error = service->GetAuthError(); if (!service->last_attempted_user_email().empty()) { args->SetString(L"user", service->last_attempted_user_email()); - args->SetInteger(L"error", error); + args->SetInteger(L"error", error.state()); } else { std::wstring user(UTF16ToWide(service->GetAuthenticatedUsername())); args->SetString(L"user", user); - args->SetInteger(L"error", user.empty() ? 0 : error); + args->SetInteger(L"error", user.empty() ? 0 : error.state()); } } |