Index: chrome/test/testing_profile.cc |
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc |
index 468c051b71104730c861ed6668de158f1c83e131..9c486fd380fed988b62b0e1c4613630ac2729d22 100644 |
--- a/chrome/test/testing_profile.cc |
+++ b/chrome/test/testing_profile.cc |
@@ -25,6 +25,7 @@ |
#include "chrome/browser/history/history_backend.h" |
#include "chrome/browser/history/top_sites.h" |
#include "chrome/browser/net/gaia/token_service.h" |
+#include "chrome/browser/net/gaia/authentication_service.h" |
#include "chrome/browser/net/pref_proxy_config_service.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/prefs/browser_prefs.h" |
@@ -735,6 +736,13 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() { |
MessageLoop::current()->Run(); |
} |
+AuthenticationService* TestingProfile::GetAuthenticationService() { |
+ if (!authentication_service_.get()) { |
+ authentication_service_.reset(new AuthenticationService()); |
+ } |
+ return authentication_service_.get(); |
+} |
+ |
TokenService* TestingProfile::GetTokenService() { |
if (!token_service_.get()) { |
token_service_.reset(new TokenService()); |