Index: chrome/browser/signin/token_service.cc |
diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc |
index 58b508eed8bf1c903157711bb527e811efaa9691..dfed648d6b66923d3f15ea09daa690cf7df7e352 100644 |
--- a/chrome/browser/signin/token_service.cc |
+++ b/chrome/browser/signin/token_service.cc |
@@ -7,6 +7,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" |
@@ -59,7 +60,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(); |