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

Unified Diff: extensions/browser/api/idle/idle_api_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: extensions/browser/api/idle/idle_api_unittest.cc
diff --git a/extensions/browser/api/idle/idle_api_unittest.cc b/extensions/browser/api/idle/idle_api_unittest.cc
index 2e0a60419a5268a2b42c30036d38bcd07dcd672f..31535bc2347575109d217b0cb396098da69736a9 100644
--- a/extensions/browser/api/idle/idle_api_unittest.cc
+++ b/extensions/browser/api/idle/idle_api_unittest.cc
@@ -7,6 +7,7 @@
#include <limits.h>
#include <string>
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "extensions/browser/api/idle/idle_api_constants.h"
#include "extensions/browser/api/idle/idle_manager_factory.h"
@@ -111,8 +112,9 @@ ScopedListen::~ScopedListen() {
idle_manager_->OnListenerRemoved(details);
}
-KeyedService* IdleManagerTestFactory(content::BrowserContext* context) {
- return new IdleManager(context);
+scoped_ptr<KeyedService> IdleManagerTestFactory(
+ content::BrowserContext* context) {
+ return make_scoped_ptr(new IdleManager(context));
}
} // namespace
« no previous file with comments | « extensions/browser/api/api_resource_manager.h ('k') | extensions/browser/api/sockets_tcp/sockets_tcp_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698