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

Unified Diff: chrome/browser/media/router/media_router_mojo_impl_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/media/router/media_router_mojo_impl_unittest.cc
diff --git a/chrome/browser/media/router/media_router_mojo_impl_unittest.cc b/chrome/browser/media/router/media_router_mojo_impl_unittest.cc
index 810bdb77b1a4dad7a2c014c4469ce4bf1b263a61..09e2572a905779199d7bcc6be16031709c99426e 100644
--- a/chrome/browser/media/router/media_router_mojo_impl_unittest.cc
+++ b/chrome/browser/media/router/media_router_mojo_impl_unittest.cc
@@ -83,8 +83,8 @@ class TestProcessManager : public extensions::ProcessManager {
extensions::ExtensionRegistry::Get(context)) {}
~TestProcessManager() override {}
- static KeyedService* Create(content::BrowserContext* context) {
- return new TestProcessManager(context);
+ static scoped_ptr<KeyedService> Create(content::BrowserContext* context) {
+ return make_scoped_ptr(new TestProcessManager(context));
}
MOCK_METHOD1(IsEventPageSuspended, bool(const std::string& ext_id));

Powered by Google App Engine
This is Rietveld 408576698