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

Unified Diff: chrome/browser/policy/testing_policy_url_fetcher_factory.cc

Issue 7524033: Add a scoper object for URLFetcher::Factory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 5 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/policy/testing_policy_url_fetcher_factory.cc
diff --git a/chrome/browser/policy/testing_policy_url_fetcher_factory.cc b/chrome/browser/policy/testing_policy_url_fetcher_factory.cc
index de36d3b8ce280ea324dec837881a7a7403df5335..97feda1460d42af3357a407a9e2fc00d7ed61862 100644
--- a/chrome/browser/policy/testing_policy_url_fetcher_factory.cc
+++ b/chrome/browser/policy/testing_policy_url_fetcher_factory.cc
@@ -92,9 +92,10 @@ void TestingPolicyURLFetcher::Respond() {
TestingPolicyURLFetcherFactory::TestingPolicyURLFetcherFactory(
EventLogger* logger)
- : logger_(logger),
- scheduler_(new LoggingWorkScheduler(logger)),
- ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
+ : ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
+ logger_(logger),
+ scheduler_(new LoggingWorkScheduler(logger)),
+ ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
}
TestingPolicyURLFetcherFactory::~TestingPolicyURLFetcherFactory() {

Powered by Google App Engine
This is Rietveld 408576698