Index: chrome/browser/signin/token_service.cc |
diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc |
index da66af2c8dc4e1cbecb8600749a11b7cfdd373c8..e5f47eff1c3f115e581244eef14546ee7fa80e03 100644 |
--- a/chrome/browser/signin/token_service.cc |
+++ b/chrome/browser/signin/token_service.cc |
@@ -8,6 +8,7 @@ |
#include "base/command_line.h" |
#include "base/string_util.h" |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
@@ -62,7 +63,8 @@ void TokenService::Initialize(const char* const source, |
getter_ = profile->GetRequestContext(); |
// Since the user can create a bookmark in incognito, sync may be running. |
// Thus we have to go for explicit access. |
- web_data_service_ = profile->GetWebDataService(Profile::EXPLICIT_ACCESS); |
+ web_data_service_ = WebDataServiceFactory::GetForProfile( |
+ profile, Profile::EXPLICIT_ACCESS); |
source_ = std::string(source); |
CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |