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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)
Patch Set: address comments Created 4 years, 4 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/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 0f1ea91ff6e8a66f91ce3a7ee1f4396547f1c94d..bb05d2af47223011aa5eebb92458ab059e2e2754 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -429,9 +429,8 @@ class ExtensionService
void ClearProvidersForTesting();
// Adds an ExternalProviderInterface for the service to use during testing.
- // Takes ownership of |test_provider|.
void AddProviderForTesting(
- extensions::ExternalProviderInterface* test_provider);
+ std::unique_ptr<extensions::ExternalProviderInterface> test_provider);
// Simulate an extension being blacklisted for tests.
void BlacklistExtensionForTest(const std::string& extension_id);
« no previous file with comments | « chrome/browser/extensions/extension_migrator_unittest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698