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

Unified Diff: chrome/browser/search/hotword_service_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/search/hotword_service_unittest.cc
diff --git a/chrome/browser/search/hotword_service_unittest.cc b/chrome/browser/search/hotword_service_unittest.cc
index 84444468e2f7634ad895d0752355303babf0c7d7..9d53410d4cfbd88bdd56dd4b9d934da979637274 100644
--- a/chrome/browser/search/hotword_service_unittest.cc
+++ b/chrome/browser/search/hotword_service_unittest.cc
@@ -109,8 +109,10 @@ class MockHotwordService : public HotwordService {
std::string extension_id_;
};
-KeyedService* BuildMockHotwordService(content::BrowserContext* context) {
- return new MockHotwordService(static_cast<Profile*>(context));
+scoped_ptr<KeyedService> BuildMockHotwordService(
+ content::BrowserContext* context) {
+ return make_scoped_ptr(
+ new MockHotwordService(static_cast<Profile*>(context)));
}
} // namespace
« no previous file with comments | « chrome/browser/search/hotword_installer_browsertest.cc ('k') | chrome/browser/search_engines/template_url_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698