diff options
author | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-08 05:22:22 +0000 |
---|---|---|
committer | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-08 05:22:22 +0000 |
commit | 859f6b2052bf8609ca7322dc64c089dbfdc5ff19 (patch) | |
tree | 8f73ab08c636ed75a63c7c044d07b29cacbe3779 /chrome/browser/profiles/profile_downloader.cc | |
parent | 12fdc50d289ef601f000832381f45a62e56b0db6 (diff) | |
download | chromium_src-859f6b2052bf8609ca7322dc64c089dbfdc5ff19.zip chromium_src-859f6b2052bf8609ca7322dc64c089dbfdc5ff19.tar.gz chromium_src-859f6b2052bf8609ca7322dc64c089dbfdc5ff19.tar.bz2 |
Converting TokenService to a ProfileKeyedService.
BUG=112531
TEST=no new ones
Review URL: http://codereview.chromium.org/9387017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125565 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_downloader.cc')
-rw-r--r-- | chrome/browser/profiles/profile_downloader.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc index d4726f2..de85fc1 100644 --- a/chrome/browser/profiles/profile_downloader.cc +++ b/chrome/browser/profiles/profile_downloader.cc @@ -16,6 +16,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile_downloader_delegate.h" #include "chrome/browser/signin/token_service.h" +#include "chrome/browser/signin/token_service_factory.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/net/gaia/gaia_constants.h" #include "chrome/common/net/gaia/gaia_urls.h" @@ -202,7 +203,8 @@ void ProfileDownloader::Start() { VLOG(1) << "Starting profile downloader..."; DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - TokenService* service = delegate_->GetBrowserProfile()->GetTokenService(); + TokenService* service = + TokenServiceFactory::GetForProfile(delegate_->GetBrowserProfile()); if (!service) { // This can happen in some test paths. LOG(WARNING) << "User has no token service"; @@ -254,7 +256,8 @@ void ProfileDownloader::StartFetchingImage() { } void ProfileDownloader::StartFetchingOAuth2AccessToken() { - TokenService* service = delegate_->GetBrowserProfile()->GetTokenService(); + TokenService* service = + TokenServiceFactory::GetForProfile(delegate_->GetBrowserProfile()); DCHECK(!service->GetOAuth2LoginRefreshToken().empty()); std::vector<std::string> scopes; |