Index: chrome/browser/extensions/active_script_controller_unittest.cc |
diff --git a/chrome/browser/extensions/active_script_controller_unittest.cc b/chrome/browser/extensions/active_script_controller_unittest.cc |
index 3f191ade29dd803ed39b749363749c9b8562a96b..497077d4bb9849d60685e4e77652653968bf922f 100644 |
--- a/chrome/browser/extensions/active_script_controller_unittest.cc |
+++ b/chrome/browser/extensions/active_script_controller_unittest.cc |
@@ -32,11 +32,6 @@ namespace { |
const char kAllHostsPermission[] = "*://*/*"; |
-// We skip syncing for testing purposes. |
-KeyedService* BuildSyncService(content::BrowserContext* context) { |
- return nullptr; |
-} |
- |
} // namespace |
// Unittests for the ActiveScriptController mostly test the internal logic |
@@ -169,8 +164,9 @@ void ActiveScriptControllerUnitTest::IncrementExecutionCount( |
void ActiveScriptControllerUnitTest::SetUp() { |
ChromeRenderViewHostTestHarness::SetUp(); |
- ExtensionSyncServiceFactory::GetInstance()->SetTestingFactory( |
- profile(), &BuildSyncService); |
+ // Skip syncing for testing purposes. |
+ ExtensionSyncServiceFactory::GetInstance()->SetTestingFactory(profile(), |
+ nullptr); |
TabHelper::CreateForWebContents(web_contents()); |
TabHelper* tab_helper = TabHelper::FromWebContents(web_contents()); |