Index: chrome/browser/chromeos/gdata/gdata_auth_service.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_auth_service.cc b/chrome/browser/chromeos/gdata/gdata_auth_service.cc |
index 2b335a9fec0594b42b3f0aae33469dbc19bda90b..cb5673aefb60efffddf025b00a9b47f8468b48fa 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_auth_service.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_auth_service.cc |
@@ -41,8 +41,7 @@ void GDataAuthService::Initialize(Profile* profile) { |
GDataAuthService::GDataAuthService() |
: profile_(NULL), |
- weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
- weak_ptr_bound_to_ui_thread_(weak_ptr_factory_.GetWeakPtr()) { |
+ weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
} |
@@ -63,11 +62,11 @@ void GDataAuthService::StartAuthentication( |
BrowserThread::UI, |
FROM_HERE, |
base::Bind(&GDataAuthService::StartAuthenticationOnUIThread, |
- weak_ptr_bound_to_ui_thread_, |
+ weak_ptr_factory_.GetWeakPtr(), |
registry, |
relay_proxy, |
base::Bind(&GDataAuthService::OnAuthCompleted, |
- weak_ptr_bound_to_ui_thread_, |
+ weak_ptr_factory_.GetWeakPtr(), |
relay_proxy, |
callback))); |
} else { |