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

Unified Diff: chrome/browser/extensions/active_script_controller_unittest.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 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/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());

Powered by Google App Engine
This is Rietveld 408576698