| Index: chrome/browser/sync/sync_global_error_unittest.cc
|
| diff --git a/chrome/browser/sync/sync_global_error_unittest.cc b/chrome/browser/sync/sync_global_error_unittest.cc
|
| index 0f7943eddf2ba28c70c7e6752ac650801a8debeb..cfe75e15091e798bb266d701f1a5aab44aff9ce2 100644
|
| --- a/chrome/browser/sync/sync_global_error_unittest.cc
|
| +++ b/chrome/browser/sync/sync_global_error_unittest.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| #include "chrome/browser/signin/signin_manager.h"
|
| +#include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/sync/profile_sync_service_mock.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/test/base/browser_with_test_window_test.h"
|
| @@ -112,7 +113,8 @@ TEST_F(SyncGlobalErrorTest, PassphraseGlobalError) {
|
| scoped_ptr<Profile> profile(
|
| ProfileSyncServiceMock::MakeSignedInTestingProfile());
|
| NiceMock<ProfileSyncServiceMock> service(profile.get());
|
| - SyncGlobalError error(&service);
|
| + SigninManager* signin = SigninManagerFactory::GetForProfile(profile.get());
|
| + SyncGlobalError error(&service, signin);
|
|
|
| EXPECT_CALL(service, IsPassphraseRequired())
|
| .WillRepeatedly(Return(true));
|
| @@ -129,7 +131,8 @@ TEST_F(SyncGlobalErrorTest, AuthStateGlobalError) {
|
| scoped_ptr<Profile> profile(
|
| ProfileSyncServiceMock::MakeSignedInTestingProfile());
|
| NiceMock<ProfileSyncServiceMock> service(profile.get());
|
| - SyncGlobalError error(&service);
|
| + SigninManager* signin = SigninManagerFactory::GetForProfile(profile.get());
|
| + SyncGlobalError error(&service, signin);
|
|
|
| browser_sync::SyncBackendHost::Status status;
|
| EXPECT_CALL(service, QueryDetailedSyncStatus())
|
|
|