| Index: chrome/test/testing_profile.cc
|
| diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
|
| index 3d8ea0d12c6f6d9591e514f2d1de2c68837b1f84..60e423afc509bb2f665d1fdbe771ad844f1f3e8d 100644
|
| --- a/chrome/test/testing_profile.cc
|
| +++ b/chrome/test/testing_profile.cc
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_model.h"
|
| #include "chrome/browser/dom_ui/ntp_resource_cache.h"
|
| #include "chrome/browser/history/history_backend.h"
|
| +#include "chrome/browser/net/gaia/token_service.h"
|
| #include "chrome/browser/sessions/session_service.h"
|
| #include "chrome/browser/sync/profile_sync_service_mock.h"
|
| #include "chrome/common/chrome_constants.h"
|
| @@ -338,6 +339,13 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() {
|
| MessageLoop::current()->Run();
|
| }
|
|
|
| +TokenService* TestingProfile::GetTokenService() {
|
| + if (!token_service_.get()) {
|
| + token_service_.reset(new TokenService());
|
| + }
|
| + return token_service_.get();
|
| +}
|
| +
|
| ProfileSyncService* TestingProfile::GetProfileSyncService() {
|
| if (!profile_sync_service_.get()) {
|
| // Use a NiceMock here since we are really using the mock as a
|
|
|