Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5725)

Unified Diff: chrome/browser/sync/glue/theme_util_unittest.cc

Issue 6813116: Revert 81277 - Profile shouldn't own DesktopNotificationService.DesktopNotificationService is now... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
« no previous file with comments | « chrome/browser/profiles/profile_keyed_service_factory.cc ('k') | chrome/browser/themes/theme_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698