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

Unified Diff: components/domain_reliability/service.h

Issue 491753003: Domain Reliability: Don't upload when metrics reporting is off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure constructor and destructor are on correct threads. Created 6 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: components/domain_reliability/service.h
diff --git a/components/domain_reliability/service.h b/components/domain_reliability/service.h
index 9e87ce1e3ff1e1b2358ded784c1ac40b1582b4ba..a56329454e2782b28baec48994f34bd4e3447d0e 100644
--- a/components/domain_reliability/service.h
+++ b/components/domain_reliability/service.h
@@ -11,11 +11,13 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/sequenced_task_runner.h"
+#include "base/single_thread_task_runner.h"
#include "components/domain_reliability/clear_mode.h"
#include "components/domain_reliability/domain_reliability_export.h"
#include "components/keyed_service/core/keyed_service.h"
+class PrefService;
+
namespace base {
class Value;
} // namespace base
@@ -48,7 +50,9 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityService
// called. The caller is responsible for destroying the Monitor on the given
// task runner when it is no longer needed.
virtual scoped_ptr<DomainReliabilityMonitor> CreateMonitor(
- scoped_refptr<base::SequencedTaskRunner> network_task_runner) = 0;
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
+ PrefService* pref_service,
+ const char* reporting_pref_name) = 0;
// Clears browsing data on the associated Monitor. |Init()| must have been
// called first.

Powered by Google App Engine
This is Rietveld 408576698