Index: chrome/browser/profile.cc |
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc |
index 318969488152e833bbb297d13cd179494bba6ed1..89c50f49b68c1446785173198eff6a200a18edae 100644 |
--- a/chrome/browser/profile.cc |
+++ b/chrome/browser/profile.cc |
@@ -43,6 +43,7 @@ |
#include "chrome/browser/host_zoom_map.h" |
#include "chrome/browser/in_process_webkit/webkit_context.h" |
#include "chrome/browser/net/chrome_url_request_context.h" |
+#include "chrome/browser/net/gaia/token_service.h" |
#include "chrome/browser/net/ssl_config_service_manager.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/password_manager/password_store_default.h" |
@@ -584,6 +585,10 @@ class OffTheRecordProfileImpl : public Profile, |
return desktop_notification_service_.get(); |
} |
+ virtual TokenService* GetTokenService() { |
+ return NULL; |
+ } |
+ |
virtual ProfileSyncService* GetProfileSyncService() { |
return NULL; |
} |
@@ -1629,6 +1634,13 @@ void ProfileImpl::StopCreateSessionServiceTimer() { |
create_session_service_timer_.Stop(); |
} |
+TokenService* ProfileImpl::GetTokenService() { |
+ if (!token_service_.get()) { |
+ token_service_.reset(new TokenService()); |
+ } |
+ return token_service_.get(); |
+} |
+ |
ProfileSyncService* ProfileImpl::GetProfileSyncService() { |
if (!ProfileSyncService::IsSyncEnabled()) { |
return NULL; |