| Index: chrome/browser/sync/glue/theme_util_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/sync/glue/theme_util_unittest.cc (revision 81278)
|
| +++ chrome/browser/sync/glue/theme_util_unittest.cc (working copy)
|
| @@ -102,8 +102,7 @@
|
| sync_pb::ThemeSpecifics theme_specifics;
|
| TestingProfile profile;
|
| MockThemeService* mock_theme_service = new MockThemeService;
|
| - ThemeServiceFactory::GetInstance()->ForceAssociationBetween(&profile,
|
| - mock_theme_service);
|
| + ThemeServiceFactory::ForceAssociationBetween(&profile, mock_theme_service);
|
|
|
| EXPECT_CALL(*mock_theme_service, UseDefaultTheme()).Times(1);
|
|
|
| @@ -116,8 +115,7 @@
|
|
|
| TestingProfile profile;
|
| MockThemeService* mock_theme_service = new MockThemeService;
|
| - ThemeServiceFactory::GetInstance()->ForceAssociationBetween(&profile,
|
| - mock_theme_service);
|
| + ThemeServiceFactory::ForceAssociationBetween(&profile, mock_theme_service);
|
|
|
| EXPECT_CALL(*mock_theme_service, SetNativeTheme()).Times(1);
|
|
|
| @@ -217,8 +215,7 @@
|
| TEST_F(ThemeUtilTest, SetCurrentThemeIfNecessaryDefaultThemeNotNecessary) {
|
| TestingProfile profile;
|
| MockThemeService* mock_theme_service = new MockThemeService;
|
| - ThemeServiceFactory::GetInstance()->ForceAssociationBetween(&profile,
|
| - mock_theme_service);
|
| + ThemeServiceFactory::ForceAssociationBetween(&profile, mock_theme_service);
|
|
|
| EXPECT_CALL(*mock_theme_service, GetThemeID()).WillRepeatedly(Return(
|
| ThemeService::kDefaultThemeID));
|
|
|